Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar authored Apr 12, 2020
1 parent 9c86949 commit 02c5b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function App() {
}

function A() {
const context = useContext(Context, ctx => ctx.count1)
const context = useContext(Context, ctx => ctx.count1) // with selector, only execute when count1 changed
console.log('A')
return <div>{context}</div>
}
Expand Down

0 comments on commit 02c5b15

Please sign in to comment.