Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #287 from Hentioe/typo_fix
Browse files Browse the repository at this point in the history
Fix typos in langs/zh-cn/tutorials/stores_nocontext/lesson.md
  • Loading branch information
edemaine authored Mar 17, 2024
2 parents c6c83cb + e424089 commit e50c01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langs/zh-cn/tutorials/stores_nocontext/lesson.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const [count, setCount] = counter;

Solid 的响应性是一个普遍的概念。它跟是内部组件还是外部组件都没有关系。全局状态和局部状态没有不同的概念。都是一样的。

唯一的限制是所有计算(Effect/Momo)都需要在响应顶层即 —— `createRoot` 下创建。Solid 的 `render` 会自动执行此操作。
唯一的限制是所有计算(Effect/Memo)都需要在响应顶层即 —— `createRoot` 下创建。Solid 的 `render` 会自动执行此操作。

在本教程中,`counter.tsx` 就是这样一个全局 Store。我们可以将 `main.tsx` 中的组件修改为:

Expand Down

0 comments on commit e50c01e

Please sign in to comment.