Popup-react-to-print with ReactDOM.render is no longer supported in React 18

Viewed 30

I'm using Popup react to print library, which version is "react-to-print": "^2.14.7". And, the problem that i encouter is "I can't find the way to change the PopUp react Library's React DOM version to 18"

When i Popup a modal with using that library, i got the error message with "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."

I've already changed my 'index.js' file's DOM version to 18, and also want to remove that error when i popup the print as using that library.

Will there be ways to update it ?

Thanks for your comment !

0 Answers
Related