Skip to content

Commit d7de6bb

Browse files
Update README.md
1 parent b034f43 commit d7de6bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ function TodosComponent() {
8383
```
8484

8585
## 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`.
8788

8889
```ts
8990
import { createEffect } from '@ngneat/react-rxjs';
@@ -111,4 +112,4 @@ function SearchComponent() {
111112
We can pass multiple effects.
112113

113114

114-
<div>Icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
115+
<div>Icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>

0 commit comments

Comments
 (0)