React, the popular JavaScript library for building user interfaces, has released version 18 with new features and improvements.
React, the popular JavaScript library for building user interfaces, has released version 18 with new features and improvements. These are the main ones.
Concurrent rendering is a new behind-the-scenes mechanism that lets React prepare multiple versions of your UI at the same time, and pause or abandon a render when something more urgent arrives. It keeps the interface responsive in complex applications. It is not switched on for the whole app. Moving to the new `createRoot` API, in place of `ReactDOM.render`, makes it available, and you opt in to its behaviour feature by feature, for example by using transitions or `useDeferredValue`.