lustre-labs / lustre

An Elm-inspired framework for building HTML templates, single page applications, and server-rendered components in Gleam!
https://hexdocs.pm/lustre
MIT License
744 stars 53 forks source link

➕ Update JavaScript FFI to use React v18. #5

Closed hayleigh-dot-dev closed 1 year ago

hayleigh-dot-dev commented 1 year ago

Running a lustre project these days spits out this error in the console:

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

It doesn't stop the app working but it'd be good to migrate over to the new way of doing things anyway.