Skip to content

Commit

Permalink
refine refs docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxiaobei committed Jan 29, 2024
1 parent 2660c80 commit be36572
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ export const refs = {

// App.js
import store, { refs } from './store';

function App() {
refs.total = 100;
return <div />;
}
```

---
Expand Down
5 changes: 5 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ export const refs = {

// App.js
import store, { refs } from './store';

function App() {
refs.total = 100;
return <div />;
}
```

---
Expand Down

0 comments on commit be36572

Please sign in to comment.