diff --git a/react.md b/react.md index 994918b15..7eb538ff6 100644 --- a/react.md +++ b/react.md @@ -69,6 +69,13 @@ See: [Properties](https://reactjs.org/docs/tutorial.html#using-props) ### States +```jsx +constructor(props) { + super(props) + this.state = {} +} +``` + ```jsx this.setState({ username: 'rstacruz' }) ```