Created
November 5, 2019 01:17
-
-
Save sakukode/8cdd191ed3201d180676f1ed4e6b3351 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' | |
import Table from './Table'; | |
class App extends Component { | |
render() { | |
const characters = [ | |
{ | |
name: 'Andi', | |
job: 'Dokter' | |
}, | |
{ | |
name: 'Bela', | |
job: 'Wiraswasta' | |
}, | |
{ | |
name: 'Clara', | |
job: 'Karyawan Bank' | |
}, | |
] | |
return ( | |
<div className="container"> | |
<Table characterData={characters} /> | |
</div> | |
) | |
} | |
} | |
export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment