Skip to content

Commit

Permalink
Introduction to State: Instruct how to fork and edit the embedded cod…
Browse files Browse the repository at this point in the history
…esandbox (#28309)

* Update introduction_to_state.md

* Update react/states_and_effects/introduction_to_state.md

Co-authored-by: MaoShizhong <[email protected]>

---------

Co-authored-by: MaoShizhong <[email protected]>
  • Loading branch information
kahmoh and MaoShizhong authored Jun 29, 2024
1 parent ba8f687 commit d50c656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/states_and_effects/introduction_to_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Hooks are functions that let you use React features. All hooks are recognizable
1. [State: A Component's Memory](https://react.dev/learn/state-a-components-memory)
1. [Render and Commit](https://react.dev/learn/render-and-commit)
1. Read this [article on React Reconciliation Algorithm](https://medium.com/javarevisited/react-reconciliation-algorithm-86e3e22c1b40) for a great explanation.
1. Head back to the colour changing background example from earlier in the lesson, and add a new state variable to keep track of the number of times the background color has been changed. Display the number of times the background color has been changed on the page.
1. Head back to the colour changing background example from earlier in the lesson, and add a new state variable to keep track of the number of times the background color has been changed. Display the number of times the background color has been changed on the page. You will need to fork the codesandbox to do this, which requires a codesandbox account. Click "Open Editor" in the top right of the codesandbox embed, then "Fork" in the top right of the editor.

</div>

Expand Down

0 comments on commit d50c656

Please sign in to comment.