facebookarchive / draft-js

A React framework for building text editors.

Home Page:https://draftjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support React 18 Warning: ReactDOM.render is no longer supported in React 18.

performautodev opened this issue · comments

Do you want to request a feature or report a bug?

Bug

What is the 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

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this gh to get started:

https://github.com/performautodev/test-draft-js

What is the expected behavior?

Support React 18

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

**"draft-js": "^0.11.7",**
**"react": "^18.0.0",
"react-dom": "^18.0.0",**
"react-scripts": "5.0.0",
**"typescript": "^4.6.3"**,

Hi, I see same warnings too.
But I want to know more about what problems I'm going to see if I keep using draftjs with React 18.
Is it going to work okay with warnings even if some edge case might cause errors?

Is there any community supported draftjs which avoid some React 18 problems...?