You have to use the following command: npm install react@rc react-dom@rc. Then you have to change all occurrences of the ReactDOM.render> method to the new, ReactDOM.createRoot function.