From 8567aebda7c84019e5dac523aaaf06571ab0e9d2 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Fri, 29 Jun 2018 15:45:47 +0000 Subject: [PATCH] Deploy website Deploy website version based on 5558d22b9ec5ccc46d9bb300b6762abae02cd1d4 --- docs/next/state.html | 2 +- docs/next/state/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/next/state.html b/docs/next/state.html index 4ed4c11cc1a..9fc3b5bb5fc 100644 --- a/docs/next/state.html +++ b/docs/next/state.html @@ -73,7 +73,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 arrived 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 arrived from the server, or from user input. You can also use a state container like Redux or Mobx to control your data flow. In that case you would use Redux or Mobx 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 →