Test the project yourself: Teste the project here!!!
const [data, setData] = useState('')
const [status, setStatus] = useState<IFiltroStatus>("Ambos");
const setFiltroDeEvento = useSetRecoilState<IFiltroDeEventos>(filtroDeEventos)
const submeterForm = (evento: React.FormEvent<HTMLFormElement>) => {
evento.preventDefault();
const filtro: IFiltroDeEventos = {
status,
};
data ? (filtro.data = new Date(data)) : (filtro.data = null);
setFiltroDeEvento(filtro);
};
const opcoesFiltro = ["Ambos", "Completos", "Incompletos"];
React
React Hooks
TypeScript
Recoil
- Json Server
- Add, Delete and Edit Events;
- Filter events by date;
- Drag and Drop;
- Check a finished event.
- Website - My GitHub
- Frontend Mentor - @lucasbailo
- Instagram - @lucassbailo
- LinkedIn - Lucas Bailo