Skip to content

Commit

Permalink
doc: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
awmleer committed Apr 9, 2024
1 parent 3b22a91 commit b35a8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/how-to-migrate-from-v1-to-v2.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ createGlobalStore(() => useCounter(5))
在 v2 版本的 hox 中,需要通过 `HoxRoot` 组件来收集和执行全局 Store,因此你需要在整个应用的最外层包裹一个 `HoxRoot`

```jsx
<HotRoot>
<HoxRoot>
<App />
</HotRoot>
</HoxRoot>
```

需要注意的是,在同一个浏览器页面上,**只能同时渲染一个 HoxRoot**
Expand Down

1 comment on commit b35a8de

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.