> For the complete documentation index, see [llms.txt](https://tule-developer.gitbook.io/noway/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tule-developer.gitbook.io/noway/_docs/react.md).

# React

<https://vasanthk.gitbooks.io/react-bits/patterns/25.presentational-vs-container.html>\
Presentational just have props -> functional component/stateless component\
Container pass state + props -> Presentational

<https://vasanthk.gitbooks.io/react-bits/patterns/27.passing-function-to-setState.html>\
Pass func to setState

<https://vasanthk.gitbooks.io/react-bits/anti-patterns/01.props-in-initial-state.html>\
Avoid to setState in constructor with props\
\
<https://vasanthk.gitbooks.io/react-bits/anti-patterns/04.setState-in-componentWillMount.html>\
Should call setState in componentDidMount\
\
<https://vasanthk.gitbooks.io/react-bits/anti-patterns/05.mutating-state.html>\
Don't mutating state without setState. Whenever setState gets called in the future, the mutated state gets applied

<https://vasanthk.gitbooks.io/react-bits/anti-patterns/06.using-indexes-as-key.html>\
Don't use index as key

Using `batch` for multi action to reduce re-render\
<https://react-redux.js.org/api/batch>
