Skip to content

Commit

Permalink
Updated HelloWorld.jsx (shakacode#1017)
Browse files Browse the repository at this point in the history
After the new facebook docs update the link to set initial state in ES6 Class has changed to https://reactjs.org/docs/state-and-lifecycle.html#adding-local-state-to-a-class
  • Loading branch information
AnkurVyas-BTC authored and justin808 committed Jan 22, 2018
1 parent ea390c0 commit 1fa391c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class HelloWorld extends React.Component {
super(props);

// How to set initial state in ES6 class syntax
// https://facebook.github.io/react/docs/reusable-components.html#es6-classes
// https://reactjs.org/docs/state-and-lifecycle.html#adding-local-state-to-a-class
this.state = { name: this.props.name };
}

Expand Down

0 comments on commit 1fa391c

Please sign in to comment.