반응형
리액트 개발환경 구성

기술개발/React, Frontend 2021. 2. 26. 14:10

본 포스팅은 https://www.youtube.com/watch?v=WkILRTAcRdU 영상을 보면서 공부한 자료 입니다. eslint 추가 vscode extension에서 설치 린터로써 오류를 잡아주는 것 ecma script 코드의 문법을 사전에 검사해줌 npx install-peerdeps --dev eslint-config-airbnb 에어비앤비에서 만든 linter를 추가 # package.json에 추가된 것 확인 가능 "devDependencies": { "eslint": "^7.2.0", "eslint-config-airbnb": "18.2.1", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jsx-a11y": "^6.4.1", "eslin..

Article Thumbnail
create-react-app

기술개발/React, Frontend 2021. 2. 25. 15:44

리액트 앱 생성 npm install -g create-react-app 글로벌로 create-react-app 모듈 설치 npx create-react-app myfirstapp npx 즉 1회성으로 리액트 앱 생성 뒤에 . 을 붙이면 현재 디렉토리에 생성될 것임 yarn start or npm start 앱 실행 3000번 포트로 생성된 리액트 앱 확인 가능 app.js에 있는 html 코드가 public의 index.html의 div id로 엮여서 렌더링 되는 것임 # src/app.js import logo from './logo.svg'; import './App.css'; function App() { return ( Edit src/App.js and save to reload. Learn ..

Article Thumbnail
반응형