クライアントレンダリング API への変更 まず React 18 をインストールすると、以下のような警告がコンソールに表示されます: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it’s running React 17. Learn more: https://reactjs.org/link/switch-to-createroot React では複数のルートを管理する際の使い勝手を改善する、新しいルート API を導入しています。新しいルート API によって新しい並行レンダラも有効になるため、並行処理機能にオプトインできるようになります。 // Befo
![React 18 アップグレードガイド – React Blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/b2c712cc98dd4b4358911c413bad77e850529eee/height=288;version=1;width=512/https%3A%2F%2Flegacy.reactjs.org%2Flogo-og.png)