I'm building out a navbar component using Gatsby.js. I've added an input and corresponding label which is throwing the error shown in the image below:
import React from 'react'
import { Link } from 'gatsby'
import * as styles from "../styles/navbar.module.scss"
const Navbar = () => {
return (
<input type="checkbox" id="menu">
<label for="menu" onclick></label>
<nav role="off-canvas">
<ul className={styles.navbar}>
<li><Link to="/page-1">Page 1</Link></li>
<li><Link to="/page-2">Page 2</Link></li>
<li><Link to="/page-3">Page 3</Link></li>
</ul>
</nav>
)
}
export default Navbar
I'm thinking the error has to do with the ID usage within the label and input tags.
