Closed fiik346 closed 3 months ago
I can't Input anything, but no warning or error in console. This is my code
// pages/newpost.js import dynamic from 'next/dynamic' const CustomEditor = dynamic(()=>import('../components/editor'),{ssr:false}) export default function NewPost(){ return ( <> <CustomEditor /></> ) }
Components code
// components/editor.js import { createReactEditorJS } from 'react-editor-js' const Header = require('@editorjs/header') export default function CustomEditor({data}){ const ReactEditorJS = createReactEditorJS() const TOOLS = { header: Header, } return( <ReactEditorJS tools={TOOLS} holder="editor"> <div id="editor" className="my-4 border h-64 relative"></div> </ReactEditorJS> ) }
In console that is ready to use but, I try tap the editorjs and not do anything
after look element is like EditorJS not rendered
Perhaps you should disable in your index.jsx
@Maxfri Thanks it helped me to solve rending issue. Is it a bug needs to be addressed in the component to support strict mode?
Environment
Describe
I can't Input anything, but no warning or error in console. This is my code
Components code
In console that is ready to use but, I try tap the editorjs and not do anything![IMG_20220721_115353](https://user-images.githubusercontent.com/48739090/180132708-46144bb5-2a23-4cd4-8603-b1b4d18192a2.jpg)