Update templates to use React 18 createRoot
#12220
+81
−17
Merged
createRoot
#12220