Fixes #12219 (closed)
Since CRA installs React 18 by default now, we should update the template to use the new createRoot
createRoot