Last active
July 3, 2018 15:21
-
-
Save treyhuffine/b6048a226d7c1fe16740abfb473702bd to your computer and use it in GitHub Desktop.
The App.tsx file of create-react-app with new TypeScript component children
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 * as React from 'react'; | |
import './App.css'; | |
import Description from './Description'; | |
import Header from './Header'; | |
import logo from './logo.svg'; | |
class App extends React.Component { | |
public render() { | |
return ( | |
<div className="App"> | |
<header className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> | |
<Header name="REACT" /> | |
</header> | |
<Description countBy={3} /> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment