dillon1000/react
Commit
Browse files jsx(): Inline reserved prop checks (#28262)
The JSX runtime (both the new one and the classic createElement runtime) check for reserved props like `key` and `ref` by doing a lookup in a plain object map with `hasOwnProperty`. There are only a few reserved props so this inlines the checks instead.
Changed paths2 files
First-parent comparisonpackages/react/src/ReactElementProd.js ModifiedM packages/react/src/jsx/ReactJSXElement.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…