Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import React from 'react'
  2. import Table from './Table'
  3.  
  4. class App extends React.Component {
  5. render() {
  6.  
  7. const destList = [
  8. {
  9. destination: 'Venice',
  10. country: 'Italy'
  11. },
  12. {
  13. destination: 'Gili Islands',
  14. country: 'Indonesia'
  15. },
  16. {
  17. destination: 'Kekova',
  18. country: 'Turkey'
  19. },
  20. {
  21. destination: 'Zhangjiajie',
  22. country: 'China'
  23. },
  24. {
  25. destination: 'Waitomo Glow Worm Cave',
  26. country: 'New Zealand'
  27. },
  28. ]
  29.  
  30. return (
  31. <div className="App">
  32. <h1>Travel Bucketlist</h1>
  33. <Table destinations={destList} />
  34. </div>
  35. )
  36. }
  37. }
  38.  
  39. export default App
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement