react-editor-js
react-editor-js copied to clipboard
Compatibility issue with react-router-dom
Environment
- @editorjs/editorjs version: 2.28.2
- react-editor-js version: 2.1.0
CodeSandbox
https://codesandbox.io/p/sandbox/react-editor-js-v2-forked-rpg3yt
Describe
Using react-editor-js with react-router-dom v6.20.1 displays the editor for a split second, then it's removed.
Removing react-router-dom renders the editor correctly.
In the CodeSandbox link, click the button (go to /editor and go to root /) to see the behaviour.