/React

Primary LanguageHTML

React

Certificates

Cheatsheets

Prerequisite

Modern JavaScript in React Documentation https://gist.github.com/gaearon/683e676101005de0add59e8bb345340c 5m

Official

Frameworks

Paths

Courses

sudo npm i -g create-react-app
sudo npm i -g npm
npx create-react-app myfirstreact
cd myfirstreact
npm start
npm i node-sass
 functional component: function AComponent(props){return <div>{this.props.name}</div>;}const [name, setName] = useState("initial name");
   useEffect(()=>{
       // mount, update
       return () => {
         // will unmount
       }
     },
     [name]);
 class component: class AComponent extends React.Component setState({name: value});
 lifecycle:
   componentDidMount
   componentDidUpdate
   componentWillUnmount

Learn ReactJS: Part I

Learn ReactJS: Part II

React Homepage

facebook/react

React Native

React Native Docs

npm install -g expo npm install -g expo-cli

propName={this.eventHandler} vs propName={eventHandler}

this.methodName = this.methodName.bind(this);

Guides

Ebooks

Tools

Chrome

React Developer Tool

Test

Notes

Routing

State Management

Flux

JSX

npm instal react react-dom next
blitz
nextjs
Higher order component
npm install recompose
Render Prop
useContext
useState => useReducer()
useEffect
npm install axios 
page loading status : loading, success, error
npm install json-server
useRef cancel request
set state, call api, back to previous state when error
toast 
npm install react-notifications-component
ErrorBoundary

Links

Dark mode