UNPKG

243 BMarkdownView Raw
1## State
2
3State is a plain JS object that describes your entire program. Data in it cannot be changed once created, it can only be updated with actions or `setState` method that is part of Component.
4
5```js
6this.state = {
7 name: 'John'
8}
9```