From 8a25fff56d42aa77fb340da080d9cdaaaee5b75b Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Thu, 22 Feb 2018 00:18:37 +0000 Subject: [PATCH] Deploy website Deploy website version based on 06dafc321ac86487501b6e890c19136f5ed31f51 --- docs/next/state.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/next/state.html b/docs/next/state.html index 92e361ababe..c911224f780 100644 --- a/docs/next/state.html +++ b/docs/next/state.html @@ -48,7 +48,7 @@ AppRegistry.registerComponent('AwesomeProject', () => BlinkApp); -

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrive from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

+

In a real application, you probably won't be setting state with a timer. You might set state when you have new data arrive from the server, or from user input. You can also use a state container like Redux to control your data flow. In that case you would use Redux to modify your state rather than calling setState directly.

When setState is called, BlinkApp will re-render its Component. By calling setState within the Timer, the component will re-render every time the Timer ticks.

State works the same way as it does in React, so for more details on handling state, you can look at the React.Component API. At this point, you might be annoyed that most of our examples so far use boring default black text. To make things more beautiful, you will have to learn about Style.

← PropsStyle →