Skip to content

Commit 52b5f30

Browse files
committed
Capitalize State in state-as-a-snapshot.md
1 parent 800440d commit 52b5f30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/content/learn/state-as-a-snapshot.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ When React re-renders a component:
8787
<Illustration caption="Updating the DOM tree" src="/images/docs/illustrations/i_render3.png" />
8888
</IllustrationBlock>
8989

90-
As a component's memory, state is not like a regular variable that disappears after your function returns. State actually "lives" in React itself--as if on a shelf!--outside of your function. When React calls your component, it gives you a snapshot of the state for that particular render. Your component returns a snapshot of the UI with a fresh set of props and event handlers in its JSX, all calculated **using the state values from that render!**
90+
As a component's memory, State is not like a regular variable that disappears after your function returns. State actually "lives" in React itself--as if on a shelf!--outside of your function. When React calls your component, it gives you a snapshot of the state for that particular render. Your component returns a snapshot of the UI with a fresh set of props and event handlers in its JSX, all calculated **using the state values from that render!**
9191

9292
<IllustrationBlock sequential>
9393
<Illustration caption="You tell React to update the state" src="/images/docs/illustrations/i_state-snapshot1.png" />

0 commit comments

Comments
 (0)