• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

에러가 또 발생했어요 ^^;

19.07.25 22:50 작성 조회수 113

0

https://stackoverflow.com/questions/57203236/webpack-syntax-error-is-occuered-in-reactdom-render

 

code:

ReactDom.render(<WordRelay /> , document.querySelector({selectors:'#root')});

error message:

  4 | const WordRelay = require('./WordRelay');

> 5 | ReactDom.render(<WordRelay /> , document.querySelector({selectors:'#root')});

 

답변 1

답변을 작성해보세요.

0

selectors: 이 부분 빼셔야 합니다. 이거 IDE에서 힌트 주는 부분이지 직접 따라치시면 안 돼요. 회색 박스에 들어있는 부분은 따라치지 마세요.