Last active
August 12, 2019 05:51
-
-
Save richarddd/3bd4e529504b0255e01a70765c168082 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const App = () => { | |
const { actions, state } = useStore(counterStore); | |
return ( | |
<> | |
<h1>Count {state.count}</h1> | |
<button onClick={() => actions.decrement()}>-</button> | |
<button onClick={() => actions.increment()}>+</button> | |
</> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment