npm install -g create-react-app
create-react-app react-js
- Install dependencies
npm install react react-dom --save
npm install react-router-dom --save
A library for data fetching (which generally work in all modern browsers). Facebook recommends the following:
We have selected axios based on STARS.
npm install axios --save
Checkout the console log to better understand the state
Time for a little game. (Updated logic - https://facebook.github.io/react/tutorial/tutorial.html)
We will include bootsrap framework for this..
npm install --save react-bootstrap
Use - react-autocomplete
npm install --save react-autocomplete
Example showing how pass values from :
- Parent to Child — Use Prop
- Child to Parent — Use a callback and states