에러 처리 질문
버튼이 실행되지는 않습니다. ========= ===================================================== function LikeButton() { const [liked, setLiked] = React.useState(false); const text = liked ? '좋아요 취소' : '좋아요'; return React.createElement( 'button', { onClick: () => setLiked(!liked) }, text, ); } const domContainer = document.getElementById("root"); ReactDOM.render(React.createElement(LikeButton), domContainer); ========= ================================================ Document 안녕하세요. 좋아요 눌러주세요. ========= ===================================== react-dom.development.js:18 Uncaught TypeError: Cannot read property '__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined at react-dom.development.js:18 at react-dom.development.js:15 at react-dom.development.js:16 (anonymous) @ react-dom.development.js:18 (anonymous) @ react-dom.development.js:15 (anonymous) @ react-dom.development.js:16 simple1.js:14 Uncaught TypeError: ReactDOM.render is not a function at simple1.js:14