Open yjm6560 opened 1 year ago
책 2.3.6 의 index.js 수정 사항에 나온 대로 ReactDom.render 를 호출하면 type error 가 발생한다. 현재는 아래와 같이 호출해야 한다.
ReactDom.render
const root = ReactDOM.createRoot(document.getElementById('root')); root.render( <React.StrictMode> <App /> </React.StrictMode> );
책 2.3.6 의 index.js 수정 사항에 나온 대로
ReactDom.render
를 호출하면 type error 가 발생한다. 현재는 아래와 같이 호출해야 한다.