Breaking changes
2Legacy root API removed
Applications must replace ReactDOM.render with createRoot.
Introduced in 19.0.0Ref callback cleanup semantics
Ref callbacks may return cleanup functions; implicit returns can now conflict with type expectations.
Introduced in 19.0.0