DEV Community

Fatima Alam
Fatima Alam

Posted on

React 18 updates

https://medium.com/@ojebiyifulness/react-18-the-features-and-the-future-db3158c4a24a

Updates in React 18
createRoot
Imported from React.DOM/client
Store element via element id ("root")
Pass element to createRoot(root) and store it. (a)
Call render method on the above store variable -> a.render()

Automatic Batching

Transition

Top comments (0)