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: beta/src/pages/apis/usecontext.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -175,8 +175,6 @@ Now any `Button` inside of the provider will receive the current `theme` value.
175
175
176
176
<Recipes titleText="Examples of updating context" titleId="examples-basic">
177
177
178
-
---
179
-
180
178
### Updating a value via context {/*updating-a-value-via-context*/}
181
179
182
180
In this example, the `MyApp` component holds a state variable which is then passed to the `ThemeContext` provider. Checking the "Dark mode" checkbox updates the state. Changing the provided value re-renders all the components using that context.
0 commit comments