MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / constructor

Method constructor

code/third-party/src/app.jsx:6–14  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

4
5class App extends React.Component {
6 constructor(props) {
7 super(props);
8
9 this._addNewTag = this._addNewTag.bind(this);
10 this.state = {
11 tags: ['JavaScript', 'CSS' ],
12 newTag: null
13 };
14 }
15 _addNewTag() {
16 this.setState({ newTag: this.refs.field.value });
17 }

Callers 2

theme.jsFile · 0.45
gitbook.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected