Skip to content

Commit

Permalink
better link for render trees
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna Wei committed Oct 18, 2023
1 parent 6e98624 commit cd9d44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/learn/preserving-and-resetting-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ State is isolated between components. React keeps track of which state belongs t

## State is tied to a position in the render tree {/*state-is-tied-to-a-position-in-the-tree*/}

React builds [render trees](/learn/understanding-your-ui-as-a-tree) for the component structure in your UI.
React builds [render trees](learn/understanding-your-ui-as-a-tree#the-render-tree) for the component structure in your UI.

When you give a component state, you might think the state "lives" inside the component. But the state is actually held inside React. React associates each piece of state it's holding with the correct component by where that component sits in the render tree.

Expand Down

0 comments on commit cd9d44f

Please sign in to comment.