Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Redux Made Easy with Rematch
  • Toc
  • feedback
Redux Made Easy with Rematch

Redux Made Easy with Rematch

By : Moreno
5 (4)
close
Redux Made Easy with Rematch

Redux Made Easy with Rematch

5 (4)
By: 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)
close
1
Section 1: Rematch Essentials
6
Section 2: Building Real-World Web Apps with Rematch
11
Section 3: Diving Deeper into Rematch

Preparing the environment

There are multiple ways of creating a library, from using an index.js file with one single format and a package.json file, to using some JavaScript files that are compiled to multiple formats and published through NPM. We will do the latter.

To compile the JavaScript files, we're going to use a zero-config CLI for package development called Tsdx (https://tsdx.io). This will help us to develop, test, and publish modern libraries with ease so we can focus on just writing our code and let Tsdx do all the complex configuration.

We can quickly bootstrap a new library in seconds, just by writing this in the terminal:

npx tsdx create typed-state-plugin

This will create a folder called typed-state-plugin/ with the basic setup we need to create our library.

This tool is going to create a file structure like this:

├── .gitignore
├── .prettierrc
├── package.json
├──...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete