What is createRoot in React 18?
0:11
createRoot is the new API for mounting a React application to a DOM node in React 18. It replaces the older ReactDOM.render method and enables concurrent features like automatic batching and transitions.
---
0:11