#Type '() => JSX.Element' is not assignable to type 'Component<{ name: String; children: Element; }>'

2 messages · Page 1 of 1 (latest)

lethal tangle
#

Hi there, can someone help me? why im getting this error when creating Solidjs Component?

note: for integration, im using Tailwind, Solid, and React

native leaf
#

Try this

const NavBar: Component<{ ... }> = (props) => {
  return ...;
}

Maybe you missed that props