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
What is the expected behavior?
A word of caution should be included that this does not include React 16+. Maybe also add other ways of spreading props.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 16+. It worked in previous releases.
The text was updated successfully, but these errors were encountered:
I figured out what is happening. My code used JSXTransformer, which compiled the spread attribute to React.__spread. Thanks for helping me figure it out.
Oh I see. Yeah, JSXTransformer might have broken since then. But also note that it has been unsupported for about two years now. And you should not be using it in production (if you did)—instead, please compile JSX with Babel ahead of time.
Bug in documentation
What is the current behavior?
React's spread operator was removed in React 16, but it is still in the documentation https://reactjs.org/docs/jsx-in-depth.html#spread-attributes
What is the expected behavior?
A word of caution should be included that this does not include React 16+. Maybe also add other ways of spreading props.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 16+. It worked in previous releases.
The text was updated successfully, but these errors were encountered: