Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luismda/react-redux-zustand

This is a React.js project that uses Redux and Zustand for state management as well as unit testing.
https://github.com/luismda/react-redux-zustand

react reactjs redux tailwindcss typescript vitest zustand

Last synced: about 1 month ago
JSON representation

This is a React.js project that uses Redux and Zustand for state management as well as unit testing.

Awesome Lists containing this project

README

        

# React + Redux + Zustand

This project is a video lessons player made in **React.js**. The purpose of this application was to practice some **state management** concepts using **Redux** and then migrating to **Zustand**, as a more current alternative to Redux. In addition, **unit tests** were created using the **Vitest** library to test all functions of the video player store.

## Instructions

In the [**main**](https://github.com/luismda/react-redux-zustand/tree/main) branch you can find the code that uses Redux for state management. On the [**zustand**](https://github.com/luismda/react-redux-zustand/tree/zustand) branch you can find the version that uses Zustand.

First, clone the project's repository:

```sh
git clone https://github.com/luismda/react-redux-zustand.git
```

After that, install the dependencies using the command:

```sh
yarn install
```

To run the unit tests run the command:

```sh
yarn test
```

This app uses JSON Server to simulate a REST API. So run the command to start the server:

```sh
yarn server
```

Finally, run the application:

```sh
yarn dev
```

## Technologies

- TypeScript
- React.js
- Vite
- Vitest
- TailwindCSS
- Redux
- Zustand

## Created by

Luís Miguel | [**LinkedIn**](https://www.linkedin.com/in/luis-miguel-dutra-alves/)

##

**#NeverStopLearning 🚀**