#5: So, what have you learn?, 2021
I’d like to test your knowledge with a few questions:
- Can you upgrade to React 18 without changing your v17 codebase?
- Which future version tag implies the greatest API stability — beta, next, or experimental?
- What is the main difference between the legacy root API (v17) and the new root API (v18)?
In the next section we’ll look deeper at the new root API and how to account for its curious omissions.
P.S. I’d like to know how you’re holding up! Hit reply to this email and let me know what you think so far.
- Yes. If no code changes, the app will run exactly as it did in React 17. However, once you change the root API, you’ll need to migrate all component trees rendered with it.
betais the React tag alias with the greatest API stability. This version most closely matches what the next version of React will look like.
- The legacy root API renders a component to the DOM in one function —
ReactDOM.render(<App />, rootNode). The new root API renders components with two functions —