From bddfed889cef402d0a8e20db73ee41fcb5e6b084 Mon Sep 17 00:00:00 2001 From: hejialiang <984714129@qq.com> Date: Sun, 1 Aug 2021 21:57:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/react/react-actualCombat.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docs/react/react-actualCombat.md b/docs/react/react-actualCombat.md index 67e7712..a0657fd 100644 --- a/docs/react/react-actualCombat.md +++ b/docs/react/react-actualCombat.md @@ -802,15 +802,6 @@ export default Posts extends React.Component{ #### 20. useMemo进行缓存大量计算数据,useCallback 进行缓存函数,避免重复创建 在hooks章节有讲解 - -```js -const [state]=useState() -function compute () { - -} - -``` - #### 21. 惰性初始化 优化前: