Skip to content

lucasbailo/manage-state-recoil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome again to another TypeScript project! 👋

Agenda App!

Test the project yourself: Teste the project here!!!

Home Page

Main page

Drag and Drop

Drag

Filter

Filter

Debug observer

Debug

Some code that I'm proud of

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"];

Built with

You Can

  • Add, Delete and Edit Events;
  • Filter events by date;
  • Drag and Drop;
  • Check a finished event.

Author