Reactjs – the value of useing useRef to component that import with dynamic/next
i'm using next.js import WysiwygEditor from "../wysiwygEditor"; const CreatePost = () => { const editorRef = useRef<any>(null); const printRefCurrent = () => { console.log(editorRef.current); } return ( <> <WysiwygEditor ref={editorRef} /> <button onClick={printRefCurrent}>Click</button> </> ); }; export default CreatePost; import…