dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M packages/react/src/ReactElementProd.js ModifiedM packages/react/src/jsx/ReactJSXElement.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…