Skip to content

Commit 2d9281b

Browse files
Merge pull request #13 from tegraoss/fix/readme
Update README.md
2 parents e38115d + 78f27af commit 2d9281b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ When you call `updateState`, your new data will be merged with the current data
7878
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.
7979

8080
```javascript
81-
const TestComponent = (props) => {
82-
const { name } = props;
81+
const TestComponent = ({ name, total }) => {
8382
const state = useStream(state$)
8483
return (
8584
<div>

0 commit comments

Comments
 (0)