@@ -50,8 +50,9 @@ const CounterValueView = Component.make("CounterValue")(function* () {
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
If state belongs to a single Effect-FC component instance but still benefits
|
If state belongs to a single Effect-FC component instance, or to a shallow
|
||||||
from Lens/Subscribable APIs, create it with `Component.useOnMount`:
|
hierarchy of subcomponents that receive it through props, create it with
|
||||||
|
`Component.useOnMount`:
|
||||||
|
|
||||||
```tsx
|
```tsx
|
||||||
import { Effect, SubscriptionRef } from "effect"
|
import { Effect, SubscriptionRef } from "effect"
|
||||||
|
|||||||
Reference in New Issue
Block a user