Docs
Lint / lint (push) Successful in 35s

This commit is contained in:
Julien Valverdé
2026-06-09 22:25:53 +02:00
parent 1cead4bb7b
commit 9fb56da120
+2 -2
View File
@@ -253,11 +253,11 @@ need a lifecycle that is narrower than the whole component instance.
## Useful Effect-FC Hooks ## Useful Effect-FC Hooks
The most common Effect-FC hooks are:
Unlike plain React hooks, Effect-FC hooks return Effects. Use `yield*` to run Unlike plain React hooks, Effect-FC hooks return Effects. Use `yield*` to run
them inside the component body. them inside the component body.
The most common Effect-FC hooks are:
- `Component.useOnMount`: run an Effect once during the component's first render - `Component.useOnMount`: run an Effect once during the component's first render
after mount, and return its value. The Effect must be synchronous. after mount, and return its value. The Effect must be synchronous.