React 시작하기
React Create App 설치하기
1 | npm install -g create-react-app |
React Create App 을 통해 프로젝트 생성하기
1 | create-react-app react_boot_template --scripts-version=react-scripts-ts |
개발 의존 모듈 설치하기
1 | npm install --save-dev babel-core babel-loader babel-preset-es2015 babel-preset-react react-hot-loader webpack webpack-dev-server |
글로벌 모듈 설치하기
1 | sudo npm install -g babel-cli |
필요 디렉토리 만들기
1 | mkdir server server/routes && touch public/index.html server/main.js server/routes/posts.js src/App.js src/index.js webpack.dev.config.js |
webpack 설정하기
1 | module.exports = { |
Comments