Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactDom.render 에러 #3

Open
yjm6560 opened this issue Sep 25, 2022 · 0 comments
Open

ReactDom.render 에러 #3

yjm6560 opened this issue Sep 25, 2022 · 0 comments

Comments

@yjm6560
Copy link
Owner

yjm6560 commented Sep 25, 2022

책 2.3.6 의 index.js 수정 사항에 나온 대로 ReactDom.render 를 호출하면 type error 가 발생한다.
현재는 아래와 같이 호출해야 한다.

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant