Skip to content

Commit

Permalink
Merge pull request #13 from tegraoss/fix/readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
danilo-teixeira committed Oct 12, 2019
2 parents e38115d + 78f27af commit 2d9281b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ When you call `updateState`, your new data will be merged with the current data
The other side of the coin is the UsePlug Hook. This way you can Plug your component into your newly created Store and at each change, the store data update your component's state.

```javascript
const TestComponent = (props) => {
const { name } = props;
const TestComponent = ({ name, total }) => {
const state = useStream(state$)
return (
<div>
Expand Down

0 comments on commit 2d9281b

Please sign in to comment.