Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lucasbailo/manage-state-recoil

Learning how to manage state using Recoil
https://github.com/lucasbailo/manage-state-recoil

Last synced: about 1 month ago
JSON representation

Learning how to manage state using Recoil

Awesome Lists containing this project

README

        

## Welcome again to another TypeScript project! 👋

# Agenda App!

## Test the project yourself: [Teste the project here!!!](https://manage-state-recoil.vercel.app/)

### Home Page

Main page

## Drag and Drop

Drag

## Filter

Filter

## Debug observer

Debug

## Some code that I'm proud of
```js
const [data, setData] = useState('')
const [status, setStatus] = useState("Ambos");

const setFiltroDeEvento = useSetRecoilState(filtroDeEventos)

const submeterForm = (evento: React.FormEvent) => {
evento.preventDefault();
const filtro: IFiltroDeEventos = {
status,
};
data ? (filtro.data = new Date(data)) : (filtro.data = null);

setFiltroDeEvento(filtro);
};

const opcoesFiltro = ["Ambos", "Completos", "Incompletos"];
```

## Built with

- `React`
- `React Hooks`
- `TypeScript`
- `Recoil`
- [Json Server](https://github.com/typicode/json-server#getting-started)

## You Can
- Add, Delete and Edit Events;
- Filter events by date;
- Drag and Drop;
- Check a finished event.

## Author

- Website - [My GitHub](https://github.com/lucasbailo)
- Frontend Mentor - [@lucasbailo](https://www.frontendmentor.io/profile/lucasbailo)
- Instagram - [@lucassbailo](https://www.instagram.com/lucassbailo/)
- LinkedIn - [Lucas Bailo](https://www.linkedin.com/in/lcsbailo)