reactjs / react-gradual-upgrade-demo Goto Github PK
View Code? Open in Web Editor NEWDemonstration of how to gradually upgrade an app to a new version of React
Home Page: https://reactjs.org/blog/2020/08/10/react-v17-rc.html
License: MIT License
Demonstration of how to gradually upgrade an app to a new version of React
Home Page: https://reactjs.org/blog/2020/08/10/react-v17-rc.html
License: MIT License
Sorry for my ignorance, but I never saw this approach before.
Why is this needed? Should people who do not use two react versions of the app be aware of this approach? Will something like that work with typescript?
p.s. just a note on presentation, it would be cool to see how you take this demo working with react 16 and convert it to gradual upgrade demo, instead of the whole app being in one "initial commit" where it's hard to reason about which parts are relevant to what.
Hello!
I’ve read the README and it notes that this demo essentially re-creates the functionality of React.lazy but I can’t see any explanation as to why that is the case.
So...why is it so?
Here's the quote from the blog post https://reactjs.org/blog/2020/08/10/react-v17-rc.html
Thanks to this change, it is now safer to embed a React tree managed by one version inside a tree managed by a different React version. Note that for this to work, both of the versions would need to be 17 or higher, which is why upgrading to React 17 is important.
Note that for this to work, both of the versions would need to be 17 or higher
But this repository uses React 16 inside React 17, could it possibly create bugs with events?
The application i work is a legacy one with react version 16.2 and typescript 3.3.1. For modern, planning to use the recent version of react 17.0.2. Can we have multiple version of tsconfig and generate builds?
sorry, I can't understand the solution in the docs, please could you explain it and tell me how to solve it,thanks ~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.