From be365728e8968ccfa85db1e0542423a09e5d502a Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Tue, 30 Jan 2024 02:50:57 +0800 Subject: [PATCH] refine refs docs --- README.md | 5 +++++ README.zh-CN.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index e537d05..3c3295a 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,11 @@ export const refs = { // App.js import store, { refs } from './store'; + +function App() { + refs.total = 100; + return
; +} ``` --- diff --git a/README.zh-CN.md b/README.zh-CN.md index c5dccd3..c937881 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -112,6 +112,11 @@ export const refs = { // App.js import store, { refs } from './store'; + +function App() { + refs.total = 100; + return
; +} ``` ---