Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add hook examples in README.md #17

Open
Vitormdias opened this issue Jan 27, 2020 · 1 comment
Open

add hook examples in README.md #17

Vitormdias opened this issue Jan 27, 2020 · 1 comment

Comments

@Vitormdias
Copy link
Contributor

Would be nice to update the README, talk about hooks show some examples, and maybe show the updateState high order function notation

@filipeversehgi
Copy link
Contributor

There is already a UseStream Hook Example inside the Readme:

const TestComponent = ({ name, total }) => { const state = useStream(state$) return ( <div> <h1 data-testid="name">{name}</h1> <p data-testid="total">Total: {total}</p> <p data-testid="changed">The store was{changed ? '' : n't} changed.</p> </div> ) }

But we lack HOC examples. I will try to add it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants