-
React 실행시키기JavaScript 혼자하기/React JS 2020. 11. 11. 23:31
😀 리엑트를 실행시키기 위해서 ( 맥 OS 버전 )
- Node.js : nodejs.org/en/
( 안정화되어있는거 다운받기)
Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
nodejs.org
- Yarn : classic.yarnpkg.com/en/
( npm 보다 더 선호함)
Yarn
Fast, reliable, and secure dependency management.
classic.yarnpkg.com
- Npm : www.npmjs.com/
npm | build amazing things
Build amazing things We're npm, Inc., the company behind Node package manager, the npm Registry, and npm CLI. We offer those to the community for free, but our day job is building and selling useful tools for developers like you. Take your JavaScript devel
www.npmjs.com
위에 다운 받았다면
터미널을 열고
- Create React app : github.com/facebook/create-react-app
facebook/create-react-app
Set up a modern web app by running one command. Contribute to facebook/create-react-app development by creating an account on GitHub.
github.com
>> 어플 만들때
1. npx create-react-app my-app
2. cd my-app - 파일명 다른것으로 변경가능 (ex my_blog, exam,text 아무거나)
3. npm start - npm 대신 yarn 으로 쓰기 (Yarn 으로 다운 받았을경우)