Changed unnecessarily to unnecessary (#18534)

* Changed unnecessarily to unnecessary

* fix (guide): Clean up grammatical mistakes
This commit is contained in:
Faraj Daoud
2018-10-13 04:07:49 -04:00
committed by Manish Giri
parent 994985fc17
commit a438cc34dc

View File

@ -2,14 +2,14 @@
title: Reselect
---
## Reselect
Reselect is simple selector library for Redux.
Why we need selectors? Official docs describe it this way:
Reselect is a simple selector library for Redux.
Why do we need selectors? Official docs describe it this way:
* Selectors can compute derived data, allowing Redux to store the minimal possible state.
* Selectors are efficient. A selector is not recomputed unless one of its arguments changes.
* Selectors are composable. They can be used as input to other selectors.
It might sound complicated but slectors allow app to work faster by reducing unnecessarily rerendering(s). Normally `mapStateToProps` is called every single time any change in `store` is made. `mapStateToProps` binds store values to react. Until you use `PureComponents` it might cause component being rerendered although it's not required.
It might sound complicated but selectors allow your app to work faster by reducing unnecessary rerendering(s). Normally `mapStateToProps` is called every single time any change in `store` is made. `mapStateToProps` binds store values to react. Until you use `PureComponents` it might cause component being rerendered although it's not required.
#### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article -->