dillon1000/react

Commit

Combine createElement and JSX modules (#28320)

Depends on:

- #28317 

---

There's a ton of overlap between the createElement implementation and
the JSX implementation, so I combined them into a single module.

In the actual build output, the shared code between JSX and
createElement will get duplicated anyway, because react/jsx-runtime and
react (where createElement lives) are separate, flat build artifacts.

So this is more about code organization — with a few key exceptions, the
implementations of createElement and jsx are highly coupled.
Browse files
Changed paths9 files
First-parent comparison
M packages/react-devtools-shared/src/__tests__/utils-test.js ModifiedM packages/react/src/ReactChildren.js ModifiedM packages/react/src/ReactClient.js ModifiedD packages/react/src/ReactElement.js DeletedD packages/react/src/ReactElementProd.js DeletedD packages/react/src/ReactElementValidator.js DeletedM packages/react/src/ReactServer.experimental.js ModifiedM packages/react/src/ReactServer.js ModifiedM packages/react/src/jsx/ReactJSXElement.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…