Closed djensen47 closed 5 years ago
Actually, maybe the counter isn't the best example in this case. But something more concrete would be nice.
Thanks! I have written a small application to demonstrate the lib. Will update it as an example soon and would be happy to provide a better example in the docs.
I just added the example app if you want to throw up a PR for the docs that would be amazing otherwise I will probably look at it next week when I get time.
Updated docs.
I would suggest a slightly more filled out example like this, which I'm basically pulling directly from the React Hook docs ...
For whatever reason, I was getting hung up on
<MyApp>
and passing itstate
.