Fix grammatical errors in Redux actions document (#20037)

This commit is contained in:
Anika Tabassum
2018-10-27 05:30:37 -04:00
committed by Huyen Nguyen
parent 695b3c4db1
commit c013738c70

View File

@ -4,8 +4,7 @@ title: Redux Actions
## Redux Actions ## Redux Actions
Redux action is a simple object that describes what sort of event has happened in your application. They can even contain Redux action is a simple object that describes what sort of event has happened in your application. They can even contain
data that needs to be send from the application to the Redux store. Action can contain anything but it must have a mandatory data that needs to be sent from the application to the Redux store. An action can contain anything but it must have a mandatory type property which describes the event taking place. A good practice is to use constants while describing the action.
type property which describes the event taking place. A good practice is to use constants while describing the action.
For example For example
@ -23,7 +22,7 @@ We can send these actions to the store by using
```javascript ```javascript
store.dispatch() store.dispatch()
``` ```
An application can have different sorts of events happening at a time and these actions helps describe these events. Without these actions there is no way to change the state of the application. An application can have different sorts of events happening at a time and these actions help describe these events. Without these actions there is no way to change the state of the application.
You might try [redux-actions](https://github.com/redux-utilities/redux-actions) project that reduces lot of boilerplate making writing your actions way faster. You might try [redux-actions](https://github.com/redux-utilities/redux-actions) project that reduces lot of boilerplate making writing your actions way faster.