You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disallow invalid values inside jsx when a fragment is expected
For example, the following used to compile:
`jsx('<div>${function() return 42}</div>');`
But resulted in a runtime error:
> Warning: Functions are not valid as a React child. This may happen if you
> return a Component instead of <Component /> from render. Or maybe you meant
> to call this function rather than return it.
Or, for objects: `jsx('<div>${{test: 42}}</div>');` resulted in:
> Uncaught Error: Objects are not valid as a React child (found: object with
> keys {test}). If you meant to render a collection of children,
> use an array instead.
0 commit comments