Summary
In this chapter, we learned the first steps of using Rematch and proved that Rematch reduces Redux complexity just by using pure functions and ES6 basic features. We also learned how to rename some methods, such as renaming createStore()
to init()
, and we covered migrating our Redux reducers from switch
statements to Rematch reducers, which are easier to read and easier to maintain. We also migrated our dispatch actions from the dispatch({ })
Redux method to the Rematch shorthand.
In the next chapter, we will go deeper into a React and Rematch application with complex situations, such as listing products, creating a shopping cart, making calls to an external API, in summary, building a real-world web app with the best practices and performance.