From 836d32f06c73850cc578105fd4d5132f28de43b7 Mon Sep 17 00:00:00 2001 From: liushanbao <1262300490@qq.com> Date: Mon, 18 Mar 2024 21:10:58 +0800 Subject: [PATCH] update docs --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ced7071..9729ec0 100644 --- a/README.md +++ b/README.md @@ -633,6 +633,7 @@ function App() { ``` ##### class + ```tsx import { useStore, ComponentWithStore } from "resy"; @@ -681,6 +682,7 @@ class AppClass extends ComponentWithStore { } } ``` + ## Advanced API @@ -689,7 +691,7 @@ class AppClass extends ComponentWithStore { | useConciseState | Concise version of useState | | subscribe | Subscribe for changes in store data generated by createStore | | useSubscription | Hook of subscribe | -| restore | Reset data of store, with re-render effect | +| restore | Restore data of store, with re-render effect | | setOptions | Set the options parameter of createStore | ### Detailed introduction of api @@ -743,6 +745,7 @@ function App() { ``` restore、syncUpdate、subscribe these api can also be deconstructed and used directly. + ```tsx import { useEffect } from "react"; import { useConciseState } from "resy";