Skip to content

add jsx-runtime and jsx-dev-runtime modules - #18299

Merged
lunaruan merged 1 commit into
react:masterfrom
lunaruan:jsx-runtime
Mar 17, 2020
Merged

add jsx-runtime and jsx-dev-runtime modules#18299
lunaruan merged 1 commit into
react:masterfrom
lunaruan:jsx-runtime

Conversation

@lunaruan

Copy link
Copy Markdown
Contributor

This PR adds the jsx-runtime and jsx-dev-runtime modules for the JSX Babel Plugin. WWW still relies on jsx/jsxs/jsxDEV from the "react" module, so once we refactor the code to point to the runtime modules we will remove jsx/jsxs/jsxDEV from the "react" module.

@facebook-github-botfacebook-github-bot added React Core Team Opened by a member of the React Core Team CLA Signed labels Mar 13, 2020
@codesandbox-ci

codesandbox-ciBot commented Mar 13, 2020

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ded98d8:

SandboxSource
quirky-tdd-dws4bConfiguration

@sizebot

sizebot commented Mar 13, 2020

Copy link
Copy Markdown
Details of bundled changes.

Comparing: 2666642...ded98d8

react

FileFilesize DiffGzip DiffPrev SizeCurrent SizePrev GzipCurrent GzipENV
react.development.js-4.9%-3.0%108.97 KB103.65 KB26.03 KB25.24 KBUMD_DEV
react-jsx-runtime.profiling.min.jsn/an/a0 B943 B0 B592 BNODE_PROFILING
react.production.min.js-3.5%-2.6%12.66 KB12.22 KB4.87 KB4.75 KBUMD_PROD
JSXRuntime-dev.jsn/an/a0 B29.41 KB0 B8.64 KBFB_WWW_DEV
react-jsx-dev-runtime.development.jsn/an/a0 B26.33 KB0 B8.08 KBNODE_DEV
react-jsx-dev-runtime.production.min.jsn/an/a0 B433 B0 B313 BNODE_PROD
react-jsx-dev-runtime.profiling.min.jsn/an/a0 B432 B0 B312 BNODE_PROFILING
JSXDEVRuntime-dev.jsn/an/a0 B28.82 KB0 B8.46 KBFB_WWW_DEV
JSXDEVRuntime-prod.jsn/an/a0 B510 B0 B343 BFB_WWW_PROD
react-jsx-runtime.development.jsn/an/a0 B26.91 KB0 B8.26 KBNODE_DEV
JSXDEVRuntime-profiling.jsn/an/a0 B510 B0 B343 BFB_WWW_PROFILING
react-jsx-runtime.production.min.jsn/an/a0 B944 B0 B593 BNODE_PROD
react.profiling.min.js-2.7%-1.6%16.2 KB15.76 KB5.95 KB5.85 KBUMD_PROFILING
JSXRuntime-prod.jsn/an/a0 B1.54 KB0 B742 BFB_WWW_PROD
react.development.js-7.2%-4.1%70.39 KB65.33 KB18.27 KB17.53 KBNODE_DEV
JSXRuntime-profiling.jsn/an/a0 B1.54 KB0 B742 BFB_WWW_PROFILING
react.production.min.js-5.9%-3.3%7.73 KB7.27 KB2.97 KB2.88 KBNODE_PROD
React-dev.js+17.6%+13.0%75.59 KB88.91 KB19.11 KB21.59 KBFB_WWW_DEV
React-prod.js-0.5%-1.3%18.02 KB17.92 KB4.66 KB4.6 KBFB_WWW_PROD
React-profiling.js-0.5%-1.3%18.02 KB17.92 KB4.66 KB4.6 KBFB_WWW_PROFILING

React: size: -3.5%, gzip: -2.6%

Size changes (experimental)

Generated by 🚫 dangerJS against ded98d8

@sizebot

sizebot commented Mar 13, 2020

Copy link
Copy Markdown
Details of bundled changes.

Comparing: 2666642...ded98d8

react

FileFilesize DiffGzip DiffPrev SizeCurrent SizePrev GzipCurrent GzipENV
react.development.js+0.1%+0.1%100.31 KB100.45 KB24.65 KB24.66 KBUMD_DEV
JSXRuntime-profiling.jsn/an/a0 B1.54 KB0 B742 BFB_WWW_PROFILING
JSXDEVRuntime-dev.jsn/an/a0 B28.83 KB0 B8.46 KBFB_WWW_DEV
JSXDEVRuntime-prod.jsn/an/a0 B510 B0 B343 BFB_WWW_PROD
JSXDEVRuntime-profiling.jsn/an/a0 B510 B0 B343 BFB_WWW_PROFILING
react-jsx-runtime.development.jsn/an/a0 B26.9 KB0 B8.25 KBNODE_DEV
react-jsx-runtime.production.min.jsn/an/a0 B931 B0 B585 BNODE_PROD
react-jsx-runtime.profiling.min.jsn/an/a0 B930 B0 B584 BNODE_PROFILING
JSXRuntime-dev.jsn/an/a0 B29.41 KB0 B8.64 KBFB_WWW_DEV
JSXRuntime-prod.jsn/an/a0 B1.54 KB0 B742 BFB_WWW_PROD
react.development.js+0.2%+0.1%62.14 KB62.28 KB16.92 KB16.94 KBNODE_DEV
React-dev.js+17.5%+12.7%76.26 KB89.58 KB19.28 KB21.73 KBFB_WWW_DEV
React-prod.js-0.5%-1.0%18.08 KB17.98 KB4.67 KB4.62 KBFB_WWW_PROD
react-jsx-dev-runtime.development.jsn/an/a0 B26.32 KB0 B8.08 KBNODE_DEV
React-profiling.js-0.5%-1.0%18.08 KB17.98 KB4.67 KB4.62 KBFB_WWW_PROFILING
react-jsx-dev-runtime.production.min.jsn/an/a0 B420 B0 B304 BNODE_PROD
react-jsx-dev-runtime.profiling.min.jsn/an/a0 B419 B0 B304 BNODE_PROFILING

Size changes (stable)

Generated by 🚫 dangerJS against ded98d8

@@ -34,6 +35,7 @@ describe('ReactElement.jsx', () => {
ReactFeatureFlags.warnAboutSpreadingKeyToJSX = true;

@gaearongaearonMar 13, 2020

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this test wasn't marked as "internal", it would fail on bundles as it should — because we haven't exposed these entry points on npm. To do that, check out how files in npm/ folders in different packages work. Also note "files" array in package.json of each package. (Oops, you have that part — but still need npm entry points.)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaearongaearon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add npm entry points.

@gaearon

Copy link
Copy Markdown
Collaborator

You'll also need to add them to bundles.js to actually build the bundles. See similar entry points (e.g. react-dom/server and its config) for expiration. Hit me up for any questions!

@gaearon

Copy link
Copy Markdown
Collaborator

Pls rebase :-) I think this should fail now.

@lunaruan
lunaruanforce-pushed the jsx-runtime branch 3 times, most recently from 88ea8d9 to 9565d1bCompareMarch 13, 2020 23:05

@gaearongaearon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg, pending CI, nits and a decision on UMD bundles.

Note that if we merge this now, the next release will go out with these entry points. Are we ready in terms of final naming, bundles, etc?

Comment threadscripts/rollup/bundles.js Outdated
Comment threadscripts/rollup/bundles.js Outdated
Comment threadscripts/rollup/bundles.js Outdated
Comment threadscripts/rollup/forks.js Outdated
Comment threadscripts/rollup/forks.js Outdated
Comment threadpackages/react/npm/jsx-runtime.js Outdated
@lunaruan
lunaruanforce-pushed the jsx-runtime branch 2 times, most recently from ef6fb14 to a5aa16eCompareMarch 13, 2020 23:25
global.Symbol = undefined;

React = require('react');
jsxRuntime = require('react/jsx-runtime');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nit: JSXRuntime in tests for capitalization consistency? I don't care tho

@gaearongaearon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay as we figured out, we still have an issue with duplication of bundle content.

What we need to do is to remove jsx from the React object completely, and to create separate entry points for both runtimes. Like src/jsx/JSXRuntime. There you can put the jsx() implementation with the minimal copy paste it needs (ReactElement) and an import of the current owner from React. Note you can’t just import it from parent folder. You need to get it from require(“react”) like all other packages do. Because otherwise we’ll get a copy of it in our bundle.

Then for FB bundle if we want to keep React.jsx working for a bit you could do this in the FB index file I think. Just re export from both React and Runtime.

Comment threadscripts/rollup/forks.js Outdated
Comment threadpackages/react/package.json Outdated
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1"
},
"peerDependencies": {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A package can't be its own peer. This isn't needed. If our scripts complain it's our scripts that should be fixed.

@lunaruan
lunaruanforce-pushed the jsx-runtime branch 3 times, most recently from 249203e to 2b03ad8CompareMarch 17, 2020 00:59
Comment threadpackages/react/src/React.js Outdated
Comment threadpackages/react/index.experimental.js Outdated
rajitkhanna pushed a commit to greptileai/react-benchmark that referenced this pull request Oct 21, 2024
This PR adds the jsx-runtime and jsx-dev-runtime modules for the JSX Babel Plugin. WWW still relies on jsx/jsxs/jsxDEV from the "react" module, so once we refactor the code to point to the runtime modules we will remove jsx/jsxs/jsxDEV from the "react" module.
rajitkhanna pushed a commit to greptileai/react-benchmark that referenced this pull request Oct 21, 2024
This PR adds the jsx-runtime and jsx-dev-runtime modules for the JSX Babel Plugin. WWW still relies on jsx/jsxs/jsxDEV from the "react" module, so once we refactor the code to point to the runtime modules we will remove jsx/jsxs/jsxDEV from the "react" module.
rajitkhanna pushed a commit to greptileai/react-benchmark that referenced this pull request Oct 22, 2024
This PR adds the jsx-runtime and jsx-dev-runtime modules for the JSX
Babel Plugin. WWW still relies on jsx/jsxs/jsxDEV from the "react"
module, so once we refactor the code to point to the runtime modules we
will remove jsx/jsxs/jsxDEV from the "react" module.
newkdr added a commit to newkdr/vscode-gitlens that referenced this pull request Dec 12, 2024
![snyk-top-banner](https://redirect.github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
<h3>Snyk has created this PR to upgrade react-dom from 16.8.4 to
16.14.0.</h3>
:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.
<hr/>
- The recommended version is **13 versions** ahead of your current
version.
- The recommended version was released on **4 years ago**.
<details>
<summary><b>Release notes</b></summary>
<br/>
<details>
<summary>Package name: <b>react-dom</b></summary>
<ul>
<li>
<b>16.14.0</b> - <a
href="https://redirect.github.com/facebook/react/releases/tag/v16.14.0">2020-10-14</a></br><h3>React</h3>
<ul>
<li>Add support for the <a
href="https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html"
rel="nofollow">new JSX transform</a>. (<a
href="https://redirect.github.com/lunaruan">@ lunaruan</a> in <a
href="https://redirect.github.com/facebook/react/pull/18299"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/18299/hovercard">#18299</a>)</li>
</ul>
</li>
<li>
<b>16.13.1</b> - <a
href="https://redirect.github.com/facebook/react/releases/tag/v16.13.1">2020-03-19</a></br><h3>React
DOM</h3>
<ul>
<li>Fix bug in legacy mode Suspense where effect clean-up functions are
not fired. This only affects users who use Suspense for data fetching in
legacy mode, which is not technically supported. (<a
href="https://redirect.github.com/acdlite">@ acdlite</a> in <a
href="https://redirect.github.com/facebook/react/pull/18238"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/18238/hovercard">#18238</a>)</li>
<li>Revert warning for cross-component updates that happen inside class
render lifecycles (<code>componentWillReceiveProps</code>,
<code>shouldComponentUpdate</code>, and so on). (<a
href="https://redirect.github.com/gaearon">@ gaearon</a> in <a
href="https://redirect.github.com/facebook/react/pull/18330"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/18330/hovercard">#18330</a>)</li>
</ul>
<h2>Artifacts</h2>
<ul>
<li>react: <a href="https://unpkg.com/react@16.13.1/umd/"
rel="nofollow">https://unpkg.com/react@16.13.1/umd/</a></li>
<li>react-art: <a href="https://unpkg.com/react-art@16.13.1/umd/"
rel="nofollow">https://unpkg.com/react-art@16.13.1/umd/</a></li>
<li>react-dom: <a href="https://unpkg.com/react-dom@16.13.1/umd/"
rel="nofollow">https://unpkg.com/react-dom@16.13.1/umd/</a></li>
<li>react-is: <a href="https://unpkg.com/react-is@16.13.1/umd/"
rel="nofollow">https://unpkg.com/react-is@16.13.1/umd/</a></li>
<li>react-test-renderer: <a
href="https://unpkg.com/react-test-renderer@16.13.1/umd/"
rel="nofollow">https://unpkg.com/react-test-renderer@16.13.1/umd/</a></li>
<li>scheduler: <a href="https://unpkg.com/scheduler@0.19.1/umd/"
rel="nofollow">https://unpkg.com/scheduler@0.19.1/umd/</a></li>
</ul>
</li>
<li>
<b>16.13.0</b> - <a
href="https://redirect.github.com/facebook/react/releases/tag/v16.13.0">2020-02-26</a></br><h3>React</h3>
<ul>
<li>Warn when a string ref is used in a manner that's not amenable to a
future codemod (<a href="https://redirect.github.com/lunaruan">@
lunaruan</a> in <a
href="https://redirect.github.com/facebook/react/pull/17864"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17864/hovercard">#17864</a>)</li>
<li>Deprecate <code>React.createFactory()</code> (<a
href="https://redirect.github.com/trueadm">@ trueadm</a> in <a
href="https://redirect.github.com/facebook/react/pull/17878"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17878/hovercard">#17878</a>)</li>
</ul>
<h3>React DOM</h3>
<ul>
<li>Warn when changes in <code>style</code> may cause an unexpected
collision (<a href="https://redirect.github.com/sophiebits">@
sophiebits</a> in <a
href="https://redirect.github.com/facebook/react/pull/14181"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/14181/hovercard">#14181</a>, <a
href="https://redirect.github.com/facebook/react/pull/18002"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/18002/hovercard">#18002</a>)</li>
<li>Warn when a function component is updated during another component's
render phase (<a class="user-mention notranslate"
data-hovercard-type="user" data-hovercard-url="/users/acdlite/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/acdlite">@ acdlite</a> in <a
href="https://redirect.github.com/facebook/react/pull/17099"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17099/hovercard">#17099</a>)</li>
<li>Deprecate <code>unstable_createPortal</code> (<a
href="https://redirect.github.com/trueadm">@ trueadm</a> in <a
href="https://redirect.github.com/facebook/react/pull/17880"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17880/hovercard">#17880</a>)</li>
<li>Fix <code>onMouseEnter</code> being fired on disabled buttons (<a
href="https://redirect.github.com/AlfredoGJ">@ AlfredoGJ</a> in <a
href="https://redirect.github.com/facebook/react/pull/17675"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17675/hovercard">#17675</a>)</li>
<li>Call <code>shouldComponentUpdate</code> twice when developing in
<code>StrictMode</code> (<a href="https://redirect.github.com/bvaughn">@
bvaughn</a> in <a
href="https://redirect.github.com/facebook/react/pull/17942"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17942/hovercard">#17942</a>)</li>
<li>Add <code>version</code> property to ReactDOM (<a
href="https://redirect.github.com/ealush">@ ealush</a> in <a
href="https://redirect.github.com/facebook/react/pull/15780"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/15780/hovercard">#15780</a>)</li>
<li>Don't call <code>toString()</code> of
<code>dangerouslySetInnerHTML</code> (<a
href="https://redirect.github.com/sebmarkbage">@ sebmarkbage</a> in <a
href="https://redirect.github.com/facebook/react/pull/17773"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17773/hovercard">#17773</a>)</li>
<li>Show component stacks in more warnings (<a
href="https://redirect.github.com/gaearon">@ gaearon</a> in <a
href="https://redirect.github.com/facebook/react/pull/17922"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17922/hovercard">#17922</a>, <a
href="https://redirect.github.com/facebook/react/pull/17586"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17586/hovercard">#17586</a>)</li>
</ul>
<h3>Concurrent Mode (Experimental)</h3>
<ul>
<li>Warn for problematic usages of <code>ReactDOM.createRoot()</code>
(<a href="https://redirect.github.com/trueadm">@ trueadm</a> in <a
href="https://redirect.github.com/facebook/react/pull/17937"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17937/hovercard">#17937</a>)</li>
<li>Remove <code>ReactDOM.createRoot()</code> callback params and added
warnings on usage (<a href="https://redirect.github.com/bvaughn">@
bvaughn</a> in <a
href="https://redirect.github.com/facebook/react/pull/17916"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17916/hovercard">#17916</a>)</li>
<li>Don't group Idle/Offscreen work with other work (<a
href="https://redirect.github.com/sebmarkbage">@ sebmarkbage</a> in <a
href="https://redirect.github.com/facebook/react/pull/17456"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17456/hovercard">#17456</a>)</li>
<li>Adjust <code>SuspenseList</code> CPU bound heuristic (<a
href="https://redirect.github.com/sebmarkbage">@ sebmarkbage</a> in <a
href="https://redirect.github.com/facebook/react/pull/17455"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17455/hovercard">#17455</a>)</li>
<li>Add missing event plugin priorities (<a
href="https://redirect.github.com/trueadm">@ trueadm</a> in <a
href="https://redirect.github.com/facebook/react/pull/17914"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17914/hovercard">#17914</a>)</li>
<li>Fix <code>isPending</code> only being true when transitioning from
inside an input event (<a href="https://redirect.github.com/acdlite">@
acdlite</a> in <a
href="https://redirect.github.com/facebook/react/pull/17382"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17382/hovercard">#17382</a>)</li>
<li>Fix <code>React.memo</code> components dropping updates when
interrupted by a higher priority update (<a class="user-mention
notranslate" data-hovercard-type="user"
data-hovercard-url="/users/acdlite/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/acdlite">@ acdlite</a> in <a
href="https://redirect.github.com/facebook/react/pull/18091"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/18091/hovercard">#18091</a>)</li>
<li>Don't warn when suspending at the wrong priority (<a
href="https://redirect.github.com/gaearon">@ gaearon</a> in <a
href="https://redirect.github.com/facebook/react/pull/17971"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17971/hovercard">#17971</a>)</li>
<li>Fix a bug with rebasing updates (<a
href="https://redirect.github.com/acdlite">@ acdlite</a> and <a
href="https://redirect.github.com/sebmarkbage">@ sebmarkbage</a> in <a
href="https://redirect.github.com/facebook/react/pull/17560"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17560/hovercard">#17560</a>, <a
href="https://redirect.github.com/facebook/react/pull/17510"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17510/hovercard">#17510</a>, <a
href="https://redirect.github.com/facebook/react/pull/17483"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17483/hovercard">#17483</a>, <a
href="https://redirect.github.com/facebook/react/pull/17480"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17480/hovercard">#17480</a>)</li>
</ul>
<h2>Artifacts</h2>
<ul>
<li>react: <a href="https://unpkg.com/react@16.13.0/umd/"
rel="nofollow">https://unpkg.com/react@16.13.0/umd/</a></li>
<li>react-art: <a href="https://unpkg.com/react-art@16.13.0/umd/"
rel="nofollow">https://unpkg.com/react-art@16.13.0/umd/</a></li>
<li>react-dom: <a href="https://unpkg.com/react-dom@16.13.0/umd/"
rel="nofollow">https://unpkg.com/react-dom@16.13.0/umd/</a></li>
<li>react-is: <a href="https://unpkg.com/react-is@16.13.0/umd/"
rel="nofollow">https://unpkg.com/react-is@16.13.0/umd/</a></li>
<li>react-test-renderer: <a
href="https://unpkg.com/react-test-renderer@16.13.0/umd/"
rel="nofollow">https://unpkg.com/react-test-renderer@16.13.0/umd/</a></li>
<li>scheduler: <a href="https://unpkg.com/scheduler@0.19.0/umd/"
rel="nofollow">https://unpkg.com/scheduler@0.19.0/umd/</a></li>
</ul>
</li>
<li>
<b>16.12.0</b> - <a
href="https://redirect.github.com/facebook/react/releases/tag/v16.12.0">2019-11-14</a></br><h3>React
DOM</h3>
<ul>
<li>Fix passive effects (<code>useEffect</code>) not being fired in a
multi-root app. (<a href="https://redirect.github.com/acdlite">@
acdlite</a> in <a
href="https://redirect.github.com/facebook/react/pull/17347"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17347/hovercard">#17347</a>)</li>
</ul>
<h3>React Is</h3>
<ul>
<li>Fix <code>lazy</code> and <code>memo</code> types considered
elements instead of components (<a
href="https://redirect.github.com/bvaughn">@ bvaughn</a> in <a
href="https://redirect.github.com/facebook/react/pull/17278"
data-hovercard-type="pull_request"
data-hovercard-url="/react/react/pull/17278/hovercard">#17278</a>)</li>
</ul>
<h2>Artifacts</h2>
<p>• react: <a href="https://unpkg.com/react@16.12.0/umd/"
rel="nofollow">https://unpkg.com/react@16.12.0/umd/</a><br>
• react-art: <a href="https://unpkg.com/react-art@16.12.0/umd/"
rel="nofollow">https://unpkg.com/react-art@16.12.0/umd/</a><br>
• react-dom: <a href="https://unpkg.com/react-dom@16.12.0/umd/"
rel="nofollow">https://unpkg.com/react-dom@16.12.0/umd/</a><br>
• react-is: <a href="https://unpkg.com/react-is@16.12.0/umd/"
rel="nofollow">https://unpkg.com/react-is@16.12.0/umd/</a><br>
• react-test-renderer: <a
href="https://unpkg.com/react-test-renderer@16.12.0/umd/"
rel="nofollow">https://unpkg.com/react-test-renderer@16.12.0/umd/</a><br>
• scheduler: <a href="https://unpkg.com/scheduler@0.18.0/umd/"
rel="nofollow">https://unpkg.com/scheduler@0.18.0/umd/</a></p>
</li>
<li>
<b>16.11.0</b> - 2019-10-22
</li>
<li>
<b>16.10.2</b> - 2019-10-03
</li>
<li>
<b>16.10.1</b> - 2019-09-28
</li>
<li>
<b>16.10.0</b> - 2019-09-27
</li>
<li>
<b>16.9.0</b> - 2019-08-08
</li>
<li>
<b>16.9.0-rc.0</b> - 2019-08-05
</li>
<li>
<b>16.9.0-alpha.0</b> - 2019-04-03
</li>
<li>
<b>16.8.6</b> - 2019-03-28
</li>
<li>
<b>16.8.5</b> - 2019-03-22
</li>
<li>
<b>16.8.4</b> - 2019-03-05
</li>
</ul>
from <a
href="https://redirect.github.com/facebook/react/releases">react-dom
GitHub release notes</a>
</details>
</details>
---
> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.
---
**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._
**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI4NTdmYmVkYy1hZTE3LTQ3ZGYtODhkYy03MTcyMWYxNThjZTkiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6Ijg1N2ZiZWRjLWFlMTctNDdkZi04OGRjLTcxNzIxZjE1OGNlOSJ9fQ=="
width="0" height="0"/>
> - 🧐 [View latest project
report](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17/settings/integration?pkg&#x3D;react-dom&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)
[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"react-dom","from":"16.8.4","to":"16.14.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"857fbedc-ae17-47df-88dc-71721f158ce9","prPublicId":"857fbedc-ae17-47df-88dc-71721f158ce9","packageManager":"npm","priorityScoreList":[],"projectPublicId":"12a8a5f5-3e19-438c-8280-eb8f4ee06d17","projectUrl":"https://app.snyk.io/org/newkdr/project/12a8a5f5-3e19-438c-8280-eb8f4ee06d17?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":13,"publishedDate":"2020-10-14T19:38:26.085Z"},"vulns":[]}'
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
This PR adds the jsx-runtime and jsx-dev-runtime modules for the JSX Babel Plugin. WWW still relies on jsx/jsxs/jsxDEV from the "react" module, so once we refactor the code to point to the runtime modules we will remove jsx/jsxs/jsxDEV from the "react" module.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedReact Core TeamOpened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@lunaruan@sizebot@gaearon@midudev@jetro4u@sebmarkbage@facebook-github-bot