You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,8 @@ function TodosComponent() {
83
83
```
84
84
85
85
## useComponentEffects
86
-
To use an effect we first need to create it by using the `createEffect` function:
86
+
To use an effect we first need to create it by using the `createEffect` function.
87
+
This function takes a callback function which is passed an `Observable` parameter and returns an `Observable`. Every time the `effect` is called, the value is pushed into that `Observable`.
87
88
88
89
```ts
89
90
import { createEffect } from'@ngneat/react-rxjs';
@@ -111,4 +112,4 @@ function SearchComponent() {
111
112
We can pass multiple effects.
112
113
113
114
114
-
<div>Icons made by <ahref="https://www.freepik.com"title="Freepik">Freepik</a> from <ahref="https://www.flaticon.com/"title="Flaticon">www.flaticon.com</a></div>
115
+
<div>Icons made by <ahref="https://www.freepik.com"title="Freepik">Freepik</a> from <ahref="https://www.flaticon.com/"title="Flaticon">www.flaticon.com</a></div>
0 commit comments