Skip to content

Commit

Permalink
Update hooks.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrHoroshih authored Apr 8, 2024
1 parent b7aef67 commit 3de2e9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/pages/docs/hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

Hooks is an object passed to `reflect()`, or `variant()`, etc. with properties `mounted` and `unmounted` all optional.

Both `mounted` and `unmounted` can be either function or Effector's Event. Reflect will call provided function with rendered props of the component.

## Example

```tsx
Expand Down

0 comments on commit 3de2e9b

Please sign in to comment.