본문 바로가기

Develop/React

Install ReactJS

Requirement :

- nodejs

- npm

- yarn


* install nvm(see link)

install NVM


* install yarn (centos)

]$ sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo

]$ sudo yum install yarn

* install Create React APP
]$ npm install -g create-react-app

* create project (Transforming tool. using WebPack more details)
]$ create-react-app [app-name]
]$ cd [app-name]
# developer mode using start option. easy to debugging
]$ yarn start


Additional :

# it's need to check props type

]$ npm install --save prop-types

]$ yarn add prop-types