-
Notifications
You must be signed in to change notification settings - Fork 47.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Where is react.mjs download for browser? #26728
Comments
I am the beginner , can anyone tell me how can i run my changes on react source code ? |
Per #11503 , React does not currently ship any ES module builds. Some CDNs do automatic conversion of React for use as an ESM script tag - you can try using that: |
@markerikson that's a great suggestion |
Hi @MeastroZI, I found something in the readme file which can help you with further investigation for your usecase |
Thanks, but I can't use a CDN for any libraries because I often work offline. |
https://github.com/Bibooo25730/Browserify-Gulp-Babelify-React 您可以使用我这个来转换 jsx,不过是手动的 |
Well It Depends What Editor/Ide You Use..... |
We don't currently provide a purely ESM build out of the box, so you will have to build it yourself the same way that these CDNs do. We don't think realistically this is a great way to consume React today anyway, since it's not very usable without import maps, and import maps have barely landed across browsers. We'll revisit this in the future. |
Thank! It works very well ! |
What I want to do is:
This is ridiculous that I can't just do this because there is no /dist/ folder in this repo nor react.mjs available anywhere.
The
npm i react react-dom
version doesn't have a JS browser module and the only module I found was on a CDN but it wasn't easily copiable from there because I had to manually fix import paths.The text was updated successfully, but these errors were encountered: