April 2018
Intermediate to advanced
284 pages
6h 43m
English
Action creators are functions that create actions; for example, function fetchSeats(){return{type:FETCH_SEATS,rows}}.
Actions often trigger a dispatch when invoked, for example, dispatch(fetchSeats(seats)).
Note that action creators can also be asynchronous and hence we need to handle async flow in our logic. It is an advanced topic and can be referred to on the Redux website.