So I have a react component:
function Navbar(isDark: boolean, toggle: () => void) {
   ...
}
Now I want to use this component in another component like so:
function App() {
   return <div> <Navbar isDark={someBoolValue} toggle={someFunc} /> </div>
}
However I get this error:
Type '{ isDark: boolean; toggle: () => void; }' is not assignable to type 'IntrinsicAttributes & boolean'.
How can I fix this?
 
     
     
    