> 'FuzzyHighlighter' cannot be used as a JSX component.
@mattpocockuk curious if you could explain what's going on with this React component type error.
codesandbox.io/p/sandbox/mudd…
If you ever run into which type do I use... ReactNode, ReactElement, JSX.Element etc...
Found this - which helps uncover the mystery
Understanding React's types
youtube.com/watch?v=u_zoRJ…
React's JSX typings are a little bit broken.
TypeScript lets you render all the right stuff _inside_ components.
But it's much more restrictive on what you can return from your components.
Here's a handy diagram.
Going to evaluate using Lexical (rich text editor) today for a project.
Anyone have Red Flags? Too early still?
Looking for something that
- supports multiple editors
- a11y friendly
- isn't too bare bones
- is maintained