ReactDOM.render is no longer supported in React 18
FDiskas opened this issue · 3 comments
FDiskas commented
Current behavior
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
Learn more: https://reactjs.org/link/switch-to-createroot
joewab commented
Hello, I'm very new to developing and I'm interested in helping out with this. I'm not sure how to check if the changes I make on my local clone actually work though. I found where unmountComponentAtNode and ReactDOM.render are being used and it would be simple to just change them so that it's compatible with React 18. Does anyone have any advice on this or should I just make the changes and put in a PR? Thanks!
ThomasRoest commented
I'll try to add this soon https://github.com/styleguidist/react-styleguidist/pull/2087/commits