Created
July 31, 2020 10:32
-
-
Save dnshko/b3c8875f5f08734e81f0d2ed5497dee8 to your computer and use it in GitHub Desktop.
This file contains 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'; | |
class App extends Component { | |
getGreeting() { | |
return 'Welcome to React'; | |
} | |
render() { | |
return ( | |
<div> | |
<h1>{this.getGreeting()}</h1> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment