wiringbits / scala-webapp-template

A pragmatic skeleton to build web applications in Scala/Scala.js, including user registration, login, admin portal, and, deployments
https://template-demo.wiringbits.net/
MIT License
172 stars 40 forks source link

Change ReactDom.render to createRoot (React 18 render) #434

Open KapStorm opened 10 months ago

KapStorm commented 10 months ago

Fixes React 18 console warning

Warning: 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
github-actions[bot] commented 10 months ago

Preview ready at https://createroot.sssppa.wiringbits.dev

Powered by https://codepreview.io community edition.

AlexITC commented 10 months ago

Let's wait until Slinky supports this.