Installing React

Estimated reading time: 1 minute

Prerequisite

  • JSX
  • ES6
  • JS
  • Node
  • Yarn
  • Webpack

Build in webpack

You can use painless cli getreact cli . It’s maintained by @code4mk .

# use our cli
getreact new

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Let’s play with React

  • index.html This is your index file
  • src is your playing field .
react, react.js, js