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: langs/it/tutorials/flow_switch/lesson.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
Sometimes you need to deal with conditionals with more than 2 mutual exclusive outcomes. For this case, we have the `<Switch>` and `<Match>` components modeled roughly after JavaScript's `switch`/`case`.
2
2
3
-
It will try in order to match each condition, stopping to render the first that evaluates to true. Failing all of them, it will render the the fallback.
3
+
It will try in order to match each condition, stopping to render the first that evaluates to true. Failing all of them, it will render the fallback.
4
4
5
5
In the example, we can replace our nested `<Show>` components with this:
0 commit comments