index.html 수정하기 1. div id = “app” 을 React 프로젝트의 root element 로 지정한다. 2. index.js 스크립트를 로드 한다. index.js 파일은 webpack에서 bundle된 파일이다. react 라이브러리 및 기타 자바스크립트 파일들이 하나로 합쳐진 파일이다. <!DOCTYPE html> < html > < head > < meta charset = "UTF-8" > < title > React App </ title > </ head > < body > < div id = "root" > </ div > < script src = "bundle.js" > </ script > </ body > </ html > 참조 : https://velopert.com/814
댓글
댓글 쓰기