MCPcopy Create free account
hub / github.com/kdchang/reactjs101 / App

Class App

Ch02/browserify-example/app/index.js:4–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import ReactDOM from 'react-dom';
3
4class App extends React.Component {
5 constructor(props) {
6 super(props);
7 this.state = {
8 };
9 }
10 render() {
11 return (
12 <div>
13 <h1>Hello, World!</h1>
14 </div>
15 );
16 }
17}
18
19ReactDOM.render(<App />, document.getElementById('app'));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected