Comments (10)
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.
from react.
I am the beginner , can anyone tell me how can i run my changes on react source code ?
from react.
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:
from react.
@markerikson that's a great suggestion
from react.
Hi @MeastroZI, I found something in the readme file which can help you with further investigation for your usecase
https://legacy.reactjs.org/docs/cdn-links.html
from react.
Thanks, but I can't use a CDN for any libraries because I often work offline.
from react.
https://github.com/Bibooo25730/Browserify-Gulp-Babelify-React
您可以使用我这个来转换 jsx,不过是手动的
from react.
Thanks, but I can't use a CDN for any libraries because I often work offline.
Well It Depends What Editor/Ide You Use.....
Can I Know What Ide/Editor You Use?
Maybe I Can Help You😊
from react.
@Bibooo25730 Thanks.
@j4acks0n Thanks. VSCode. I downloaded mjs version from a CDN and it works fine for me for now.
@gaearon
Import maps are present in all major browsers already and aren't going anywhere so how "barely landed" is a problem in any way?
That's a very weird argument.
Anyway, it's possible to export React as a single react.mjs without using import maps.
IMO, it's better to have /dist/ folder and a installation notice (e.g. "mjs is not recommended but available") than no /dist/ folder.
from react.
根据 #11503 ,React 目前没有发布任何 ES 模块构建。
一些 CDN 会自动转换 React 以用作 ESM 脚本标签 - 您可以尝试使用它:
Thank! It works very well !
from react.
Related Issues (20)
- Replace "Donate to Ukraine" Banner with "Support Palestine" in ReactJS HOT 23
- Bug: Suspense Exception in react-server-dom-webpack HOT 2
- Bug: Can't submit form programatically when using server actions HOT 7
- [DevTools Bug] Cannot add node "20" because a node with that id is already in the Store. HOT 1
- [DevTools Bug] Cannot read properties of undefined (reading 'concat') HOT 4
- Bug: Random preloads added for images HOT 3
- Bug: Weird behavior of form when i set a state value within an onChange handler. HOT 3
- Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). HOT 2
- Bug: React component rendered with createPortal with state controlled by parents will not rerender on state change HOT 3
- image decoder failed HOT 1
- Bug: Can't send ArrayBuffer to Server Action despite react.dev saying so HOT 7
- Bug: [React Refresh] Unexpected behavior when adding/removing elements prior to uncontrolled inputs HOT 7
- Elements with visible text labels do not have matching accessible names. HOT 1
- [DevTools Bug]: Source map error: URL: react_devtools_backend_compact.js.map HOT 2
- [DevTools Bug]: Memory Leak HOT 1
- Bug:
- Replace "Donate to Ukraine" Banner with "Support Palestine" in ReactJS HOT 5
- useFormStatus only works from within the scope of the form it relates to HOT 8
- Monopoly Go Free Dice Links: How to Get More Dice Rolls (January 2024)
- Bug: The solution for challenge 2 (Fix a retriggering animation) is an overkill. https://react.dev/learn/removing-effect-dependencies#challenges HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.