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

https://github.com/rodrigorvsn/zoro

⚔️ My Client Management Tool for React without dependencies
https://github.com/rodrigorvsn/zoro

client-management react state store typescript vite

Last synced: about 2 months ago
JSON representation

⚔️ My Client Management Tool for React without dependencies

Awesome Lists containing this project

README

          

# zoro

## Why Context Api using a state (useState) is bad for Client State Management?

- In React, when a state changes, all the components using their states are rerendered. This is not necessary in cases which the component is not using that specific data.

## What strategy is being use instead a state?

- The context is using a `useRef` to store and change the value in provider, and the `useSelector` hook in `lib/useSelector.tsx` is using a `useState` being instancied in each component with the respective value being used in that component, managed by the `listenerId`, using and updating the values from the `useRef` of the Context Api.
- This strategy is based in Redux and Zustand.

___
## 💻 Prerequisites

- Install LTS Node version.

___
## 🛠 Tools used

- React (Vite)
- Typescript
- React hooks

___

## 🚀 Installing zoro

#### Clone repository

```powershell
git clone https://github.com/RodrigoRVSN/zoro.git
```

#### Install dependencies

```powershell
yarn
```

#### Run app

```powershell
yarn dev
```
___

## 📫 Contribuiting with zoro

To contribue with zoro, follow the steps:

1. Fork this repository.
2. Create a branch: `git checkout -b `.
3. Make the changes and confirm: `git commit -m ''`
4. Send to original repository: `git push origin / `
5. Send the pull request.

Alternatively, see the GitHub documentation at [how to create a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).
___
## 🤝 Contributors

Made with ❤️ by:




Foto do Rodrigo Victor no GitHub


Rodrigo Victor