3 Replies
hey!
it's helpful to add syntax highlighting to code blocks by including the language name after the opening backticks:
json
{
"compilerOptions": {
"strict": true,
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx"
}
}
Type '(props: Props) => boolean' is not assignable to type 'FC'.
``
but none of the functions in your code snippet return a boolean, nor is any component being passed as an argument
can you share the code where
Layout` is actually being consumed?
do I need to put into a tsx file?
yeah. any file that has jsx/tsx needs a jsx/tsx extension