★ wanayoo — archive 1999
https://reactpatterns.github.io/
Nouvelle recherche
|
Portail wanayoo
[
Github
|
Twitter
]
React Patterns & Techniques
Table of Contents
Async initialization in componentDidMount()
Functional setState (Pass a function to setState)
Higher order function
Higher order component - Props proxy
Accessing a child component
JSX spread attributes
Render callback
Function as child component
Function as prop component
Component injection
Conditional rendering
Destructuring
Destructuring function arguments
Nested destructuring
Destructuring rest/spread operator
Promises over Callbacks
Functional stateless component (known as Presentational component)
Container component (known as Stateful component)
State hoisting
Props in Initial State is an Anti-Patterns
shouldComponentUpdate avoid heavy re-renders
Indexes as a key is an anti-patterns
Spreading props on DOM elements is an anti-patterns
PureComponent avoid heavy re-renders