From 142ef8e0fcdc8ee777940bff70449e937b3b9313 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Thu, 30 Jan 2020 16:33:24 +0000 Subject: [PATCH] Deploy website Deploy website version based on 77ad7d4e861b2cacc959494c3ba7d2c98f9c0f2c --- docs/next/intro-react.html | 2 +- docs/next/intro-react/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/next/intro-react.html b/docs/next/intro-react.html index 5afd1b86bc9..d4ed07ae85f 100644 --- a/docs/next/intro-react.html +++ b/docs/next/intro-react.html @@ -502,7 +502,7 @@ export default function Cafe() { />
-

You might’ve noticed that although isHungry is a const, it is seemingly reassignable! What is happening is when a state-setting function like setIsHungry is called, its component will re-render. In this case Cat will re-render its <Cat>—discarding the old isHungry and running setState again with the new value in the process!

+

You might’ve noticed that although isHungry is a const, it is seemingly reassignable! What is happening is when a state-setting function like setIsHungry is called, its component will re-render. In this case the Cat function will run again—and this time, useState will give us the next value of isHungry.

Finally, put your cats inside a Cafe component:

export default function Cafe() {
diff --git a/docs/next/intro-react/index.html b/docs/next/intro-react/index.html
index 5afd1b86bc9..d4ed07ae85f 100644
--- a/docs/next/intro-react/index.html
+++ b/docs/next/intro-react/index.html
@@ -502,7 +502,7 @@ export default function Cafe() {
 />
 
-

You might’ve noticed that although isHungry is a const, it is seemingly reassignable! What is happening is when a state-setting function like setIsHungry is called, its component will re-render. In this case Cat will re-render its <Cat>—discarding the old isHungry and running setState again with the new value in the process!

+

You might’ve noticed that although isHungry is a const, it is seemingly reassignable! What is happening is when a state-setting function like setIsHungry is called, its component will re-render. In this case the Cat function will run again—and this time, useState will give us the next value of isHungry.

Finally, put your cats inside a Cafe component:

export default function Cafe() {