Created
November 19, 2017 11:58
-
-
Save sajithdilshan/fbe7d5ecdf4ec0d70c7eb3ea6922ba9b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Alice from './Alice'; | |
class App extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
greeting: "Hello World!" | |
} | |
} | |
render() { | |
return ( | |
<div className="greeting"> | |
<h1> {this.state.greeting} </h1> | |
<Alice/> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment