Skip to content

Commit

Permalink
docs: update docs, fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Oct 23, 2024
1 parent 6d7c115 commit 8682b36
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/en/guide/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function App() {
}
```

For more information, please refer to [React Usage](/usage/react) or [API Reference](/reference/basic/create).
For more information, please refer to [React Usage](/guide/usage/react) or [API Reference](/reference/basic/create).

## Try It Online \{#try-it-online}

Expand Down
2 changes: 1 addition & 1 deletion docs/en/guide/usage/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Create a `store` with an initial state using the `create` API. It is recommended

- If you need a global state, you can place the `store` globally and then import it anywhere in your application.
- If you need a local state, you can create a `store` within the component directory and then import it for use within the component to maintain the independence of the component logic.
- If neither scenario fits your situation, you may also consider using a lighter component-level Hooks solution [useReactive](/reference/advanced/use-reactive).
- If neither scenario fits your situation, you may also consider using a lighter component-level Hooks solution [useReactive](/reference/basic/use-reactive).

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/en/guide/usage/vanilla.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Using Reactive in Vanilla JavaScript {#use-reactive-in-vanilla}

::: tip Tip
In Vanilla scenarios, please import all APIs from `/vanilla` to avoid errors due to dependencies on React without it being installed.
In Vanilla scenarios, please import all APIs from `/vanilla`.
:::

## Step 1: Create a Store {#step-1-create-a-store}
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/guide/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function App() {
}
```

更多信息,请参阅 [React 用法](/usage/react)[API 参考](/reference/basic/create)
更多信息,请参阅 [React 用法](/guide/usage/react)[API 参考](/reference/basic/create)

## 在线尝试 \{#try-it-online}

Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/guide/usage/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

- 如果你需要全局状态,可以将 `store` 放在全局下,然后在应用程序的任何地方导入它。
- 如果你需要局部状态,可以在组件目录内创建 `store`,然后在组件内引入使用以保持组件逻辑的独立性。
- 如果都不符合你的场景,也可以考虑使用更加轻量的组件级 Hooks 方案 [useReactive](/reference/advanced/use-reactive)
- 如果都不符合你的场景,也可以考虑使用更加轻量的组件级 Hooks 方案 [useReactive](/reference/basic/use-reactive)

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/guide/usage/vanilla.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 在 Vanilla JavaScript 中使用 Reactive {#use-reactive-in-vanilla}

::: tip 提示
Vanilla 场景下,所有的 API 请从 `/vanilla` 导入,否则将因依赖了 React,但是没有安装而导致报错
Vanilla 场景下,所有的 API 请从 `/vanilla` 导入。
:::

## 第 1 步:创建一个 Store {#step-1-create-a-store}
Expand Down

0 comments on commit 8682b36

Please sign in to comment.