some of EditorJs methods work asynchronously but React lifecycle is not async. so for example maybe editor start initialising and before it access its holder div component unmount! it will throw an error saying no such div is present. (it actually happened to me.) also before comp is unmounted, make sure .destroy method has done its work.
some of EditorJs methods work asynchronously but React lifecycle is not async. so for example maybe editor start initialising and before it access its holder div component unmount! it will throw an error saying no such div is present. (it actually happened to me.) also before comp is unmounted, make sure .destroy method has done its work.