Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/reactivity/14_create_effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ let b = move || a.get() * 2;

If you need to synchronize some reactive value with the non-reactive world outside—like a web API, the console, the filesystem, or the DOM—writing to a signal in an effect is a fine way to do that. In many cases, though, you’ll find that you’re really writing to a signal inside an event listener or something else, not inside an effect. In these cases, you should check out [`leptos-use`](https://leptos-use.rs/) to see if it already provides a reactive wrapping primitive to do that!

> If you’re curious for more information about when you should and shouldn’t use `create_effect`, [check out this video](https://www.youtube.com/watch?v=aQOFJQ2JkvQ) for a more in-depth consideration!
> If you’re curious for more information about when you should and shouldn’t use `Effect::new`, [check out this video](https://www.youtube.com/watch?v=aQOFJQ2JkvQ) for a more in-depth consideration!

## Effects and Rendering

Expand Down Expand Up @@ -208,7 +208,7 @@ fn CreateAnEffect() -> impl IntoView {

view! {
<h1>
<code>"create_effect"</code>
<code>"Effect::new"</code>
" Version"
</h1>
<form>
Expand Down