Skip to content

Commit 2ff3ed9

Browse files
authored
fix: typo (#2265)
1 parent 8289d74 commit 2ff3ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hooks/src/useCreation/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nav:
77

88
`useCreation``useMemo``useRef` 的替代品。
99

10-
因为 `useMemo` 不能保证被 memo 的值一定不会被重计算,而 `useCreation` 可以保证这一点。以下为 React 官方文档中的介绍:
10+
因为 `useMemo` 不能保证被 memo 的值一定不会被重新计算,而 `useCreation` 可以保证这一点。以下为 React 官方文档中的介绍:
1111

1212
> **You may rely on useMemo as a performance optimization, not as a semantic guarantee.** In the future, React may choose to “forget” some previously memoized values and recalculate them on next render, e.g. to free memory for offscreen components. Write your code so that it still works without `useMemo` — and then add it to optimize performance.
1313

0 commit comments

Comments
 (0)