JSX Element type
I have a JSX component which should accept multiple children as props, however, using
Element | Element[]
(or ReactElement
imported from hono/jsx
) gives the following error when multiple children are passed:
Any ideas on how to accept multiple child elements?3 Replies
i know it's not the best solution, but I just just ended up typing like this:
children?: unknown;
Pretty much what I've done for the time being as well :/
I used ReactNode seems to have worked for me