Skip to content

Commit 78f27af

Browse files
authored
Update README.md
1 parent e38115d commit 78f27af

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)