Discover the power of Rematch and its plugins by building a real-world application from scratch
Key Features
- Get to grips with the capabilities of Rematch quickly as you build applications
- Learn to use Rematch and its plugins to simplify everyday tasks
- Take total control of the application state and manage its scalability using Rematch
Book Description
Rematch is Redux best practices without the boilerplate. This book is an easy-to-read guide for anyone who wants to get started with Redux, and for those who are already using it and want to improve their codebase.
Complete with hands-on tutorials, projects, and self-assessment questions, this easy-to-follow guide will take you from the simplest through to the most complex layers of Rematch. You'll learn how to migrate from Redux, and write plugins to set up a fully tested store by integrating it with vanilla JavaScript, React, and React Native. You'll then build a real-world application from scratch with the power of Rematch and its plugins. As you advance, you'll see how plugins extend Rematch functionalities, understanding how they work and help to create a maintainable project. Finally, you'll analyze the future of Rematch and how the frontend ecosystem is becoming easier to use and maintain with alternatives to Redux.
By the end of this book, you'll be able to have total control of the application state and use Rematch to manage its scalability with simplicity.
What you will learn
- Understand the principal concepts of Flux and Redux
- Find out what the main problems are that Rematch solves
- Become familiar with the Rematch ecosystem
- Develop an application using Rematch and React together
- Write unit and integration tests to get 100% test coverage of your programs with Rematch
- Create a React Native app with Rematch and Expo
- Persist data with redux-persist and Rematch
- Build a Rematch plugin from scratch
Who this book is for
This book is for React and Redux users looking for better alternatives for Redux. Familiarity with JavaScript, React, and Redux will help you make the most of this book.
Table of Contents
- Why Redux? An Introduction to Redux Architecture
- Why Rematch over Redux? An Introduction to Rematch Architecture
- Redux First Steps - Creating a Simple To-Do App
- From Redux to Rematch - Migrating a To-Do App to Rematch
- React with Rematch - The Best Couple - Part I
- React with Rematch - The Best Couple - Part II
- Introducing Testing to Rematch
- The Rematch Plugins Ecosystem
- Composable Plugins - Create Your First Plugin
- Rewrite a Full Code Base from JavaScript to TypeScript
- Rematch with React Native and Expo - A Real-World Mobile App
- Rematch Performance Improvements and Best Practices
- Conclusion
Sergio Moreno is a front-end developer with more than 4 years of experience really focused in the analysis, design, development and building large-scale applications. Formerly worked at Allfunds, the world’s largest fund distribution network, he led the front-end team to build a full new suite of products for the new Digital section of Allfunds. He entered the open-source world in 2019 where’s contributed to big companies like Google, Facebook, Airbnb, or Pinterest and much more. In 2020 focused his contributions to Rematch, where he released the v2 version with a full rewrite of the codebase and a full compatibility with Typescript and so many improvements like reducing the bundlesize in some cases by 110%, and Lingui, an amazing internationalization library, who helped to release the v3 version. In 2021, joined Flowable as Product Engineer, a compact and highly efficient workflow and business process management platform for developers, system admins and business users.