import { State, Observe } from '../es'; import { Link } from "@reach/router";
<State initialState={{ count: 0 }}>
{({ setState }) => ( setState(s => ({ count: s.count + 1 }))}> Click me )}The button has been clicked:
{ ({...state}) => (`${state.count} times`) }