Skip to content

Instantly share code, notes, and snippets.

@aislanmaia
aislanmaia / App.js
Last active July 20, 2022 19:00
Example for how to enable hot-reload with xstate and use-machine libraries and an example project.
import React, { useContext } from "react";
import Dashboard from "./Dashboard";
import Login from "./Login";
import AppContext from "./AppContext";
export default () => {
const { machine, error } = useContext(AppContext);
console.log("executing App component...");
return (
@aislanmaia
aislanmaia / gist:3648708
Created September 6, 2012 00:30
Filtros com Grid
filtros num datagrid, podendo os dados virem em json do servidor ou nao. Esses filtros poderiam ser selecionados por um select ou um simples por um campo só da tabela