react icon indicating copy to clipboard operation
react copied to clipboard

Can ui-router/react support React18 new features?

Open Fangfanghao opened this issue 3 years ago • 6 comments

If we want to support React18 new features ui-router/react, we have to replace ReactDOM.render to createRoot

and replace unmountComponentAtNode with unmount

Do we have a plan to suppport this?

Fangfanghao avatar Aug 10 '22 02:08 Fangfanghao

Yes, please. I'm getting errors about missing source maps because of Webpack 5 + React 18.

kadamgreene avatar Oct 31 '22 19:10 kadamgreene

Yes, I am also getting error because of Webpack 5 + React 18.

codecdekamal avatar Mar 12 '23 10:03 codecdekamal

Any news on this?

pahen avatar Apr 18 '23 09:04 pahen

Currently No now but, For developers:

Stay informed: Keep an eye on the official announcements from the React and ui-router teams regarding updates and compatibility with React 18.

Check documentation: Review the documentation and release notes of ui-router and React 18 to understand any changes required for compatibility.

Be prepared for updates: Once React 18 is officially released, update your dependencies and check for any potential breaking changes in ui-router or other libraries you are using.

Akshatjalan avatar Jul 19 '23 22:07 Akshatjalan

This issue makes no sense. Ui-router/react does not mount the component tree. You will find no use of ReactDOM.render and unmountComponentAtNode in its codebase. It works just fine with React 18.

andref avatar Apr 07 '24 11:04 andref

@andref I think they refer to react-hybrid: https://github.com/ui-router/react-hybrid/issues/580

chiptus avatar Apr 17 '24 06:04 chiptus