7 ms·
> You pass the component function itself to React.createElement, not its result. JSX prevents you from being able to do this directly. For example, <() => "hel
by dakom 8y ago
> You pass the component function itself to React.createElement, not its result.
JSX prevents you from being able to do this directly. For example, <() => "hello" /> is illegal.