reagent

Marten Sytema 2025-04-22T19:40:29.588539Z

Hi folks, in 1.3.0, and with react 18, should we use this new create-root feature? Because i get a warning, but not sure if it ’ll break anything if I use create-root https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis

p-himik 2025-04-22T19:46:08.567479Z

It shouldn't break anything, but there could be issues with proper re-rendering on hot code reload if you don't use it (not entirely sure about this part) or if you use it incorrectly (I found that seemingly you should re-create the root on hot code reload).