Closed adarah closed 1 year ago
I am experiencing a similar issue.
Hono: ^3.5.4,
tsconfig:
"jsx": "react-jsx", "jsxImportSource": "hono/jsx"
'Fragment cannot be used as a JSX component. [...] Type 'JSXNode' is not assignable to type 'string'.
Hi @adarah , @msonnemans !
This issue may be fixed with new version v3.5.8. Try it!
What version of Hono are you using?
3.5.7
What runtime/platform is your app running on?
None, typescript issue.
What steps can reproduce the bug?
cd jsx-ssr && npm i
top.tsx
, try placing ahono/jsx
Fragment as such:const List = (props: { post: Post }) => (
);
export const Top = (props: { posts: Post[] }) => { return ( <Layout title={"Top"}>
Posts
{props.posts.map((post) => (
))}
Hello world
); };