Book Image

Redux Made Easy with Rematch

By : Sergio Moreno
Book Image

Redux Made Easy with Rematch

By: Sergio Moreno

Overview of this book

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.
Table of Contents (18 chapters)
1
Section 1: Rematch Essentials
6
Section 2: Building Real-World Web Apps with Rematch
11
Section 3: Diving Deeper into Rematch

Introduction to Rematch plugins

Probably the first question that we should ask is what is a plugin? A plugin is a software add-on that is installed on software, enhancing its capabilities. When we think about how plugins work, what comes to our minds are browser extensions where the browser has just minimal functionality, or, better put, just what's needed for most users.

Making software extendable using plugins is a breeze because our base software is simple and plugins can extend this base functionality, making the software even more powerful but covering all use cases. If a user only wants the base software, they can decide to not use plugins, and if another user has a complex use case, they can implement a plugin that covers that use case without jamming other users. Sometimes building moldable software is the best approach.

Rematch is one of the best examples of modularity, and offering plugins was one of the best decisions we took when building Rematch.

The @rematch...