dillon1000/react

Commit

jsx(): Treat __self and __source as normal props (#28257)

These used to be reserved props because the classic React.createElement
runtime passed this data as props, whereas the jsxDEV() runtime passes
them as separate arguments.

This brings us incrementally closer to being able to pass the props
object directly through to React instead of cloning a subset into a new
object.

The React.createElement runtime is unaffected.
Browse files
Changed paths3 files
First-parent comparison
M packages/react/src/ReactElementProd.js ModifiedM packages/react/src/__tests__/ReactElementValidator-test.internal.js ModifiedM packages/react/src/jsx/ReactJSXElement.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…