diff --git a/source/app.js b/source/app.js index c34c1d5..8724014 100644 --- a/source/app.js +++ b/source/app.js @@ -1,2 +1,20 @@ -const who = 'World' -console.log(`Hello ${who}`) +import React from 'react' +import { render } from 'react-dom' + +class App extends React.Component { + constructor () { + super() + this.state = { + who: "React" + } + } + render () { + return ( +
+ {`Hello ${this.state.who}`} +
+ ) + } +} + +render(, document.getElementById('root'))