import React from 'react'; import { createStore, useStore } from '../src'; const defaultStyles = { padding: 10, backgroundColor: 'navy', marginTop: 10, color: 'white' } // Creating a nameless store, do that if you do not wish to have multiple stores in your app createStore('clickCounter', 0); export function StatefulHello() { // just use the useStore method to grab the state and the setState methods const [ state, setState ] = useStore('clickCounter'); return (