Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo in zh signals.md #1221

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/zh/guide/v10/signals.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function App() {

## 使用信号的本地状态

应用的大部分状态最终都是使用props和context传递的。但是,在许多情况下,组件具有特定于该组件的内部状态。没有理由让这些状态称为全局业务逻辑的一部分,因此应将其限制于需要它的组件中。在这些情况下,我们可以使用`useSignal()``useComputed()` 钩子:
应用的大部分状态最终都是使用props和context传递的。但是,在许多情况下,组件具有特定于该组件的内部状态。没有理由让这些状态成为全局业务逻辑的一部分,因此应将其限制于需要它的组件中。在这些情况下,我们可以使用`useSignal()``useComputed()` 钩子:

```jsx
import { useSignal, useComputed } from "@preact/signals";
Expand Down
Loading