-
Notifications
You must be signed in to change notification settings - Fork 0
React Shell Commands
sergio edited this page Feb 4, 2021
·
4 revisions
npm install -g npm
This will make sure you have the newest version of Node Package Manager. It will also give us access to npx.
with npx, we can provide a node package name as an argument and use remote node packages as though they were installed with npm.
npx create-react-app <your_app_name>
Babel enables us to use syntax that browsers won't natively recognise by pre-compiling it into syntax that browsers do natively recognise. When used with React, this can (and in our case will) include, but not be limited to, digesting JSX.
- Mounting -
static getDerivedStateFromProps(props, state)- Mounting -
componentDidMount()- Updating -
static getDerivedStateFromProps(props, state)- Updating -
shouldComponentUpdate(nextProps, nextState)- Updating -
render()- Updating -
getSnapshotBeforeUpdate(prevProps, prevState)- Updating -
componentDidUpdate(prevProps, prevState, snapshot)- Unmounting -
componentWillUnmount()- Element Ref