You're probably assigning a non-string-or-function to a variable and trying to have that rendered as a component. const Foo = <div />; return <Foo /> or somesuch. That won't work, because it will be transpiled from jsx into something like this: const Foo = jsx("div", ...); return jsx(Foo, ...);, which is invalid.
The error message relates to another common way this happens: getting your import wrong (import Foo vs import { Foo }).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You're probably assigning a non-string-or-function to a variable and trying to have that rendered as a component.
const Foo = <div />; return <Foo />or somesuch. That won't work, because it will be transpiled from jsx into something like this:const Foo = jsx("div", ...); return jsx(Foo, ...);, which is invalid.The error message relates to another common way this happens: getting your import wrong (
import Foovsimport { Foo }).