Skip to content

Commit

Permalink
fix: docs incomplete version by error (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
piny4man committed Jul 26, 2023
1 parent 1612a82 commit fa6f933
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/src/frontend/03_04_03_effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ Here's a quick look at how it works:
}
```

Sure, here's a revised version with a more formal tone:

## Film Modal

We will begin by adapting our `FilmModal` component. This will be modified to pre-populate the form with the values of the film that is currently being edited. To accomplish this, we will use the `use_effect` hook.
Expand Down Expand Up @@ -136,4 +134,4 @@ fn App(cx: Scope) -> Element {
}
```

What we have done here is trigger an effect whenever there is a need to fetch films from our API. We then evaluate whether there are any films available. If there are, we set the `films` state to these existing films. If not, we set the `films` state to `None`. This allows us to enhance our `App` component with additional functionality.
What we have done here is trigger an effect whenever there is a need to fetch films from our API. We then evaluate whether there are any films available. If there are, we set the `films` state to these existing films. If not, we set the `films` state to `None`. This allows us to enhance our `App` component with additional functionality.

0 comments on commit fa6f933

Please sign in to comment.