Guest User

Untitled

a guest
Apr 25th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import JsonTable from 'ts-react-json-table'
  3.  
  4. var items = [
  5. {"id": 75950,"name": "Louella Wallace","age": 24,"phone": "+44 (0)203 437 7302","color": "green"},
  6. {"id": 80616,"name": "Hanson Perry","age": 36,"phone": "+44 (0)203 279 3708","color": "brown"},
  7. {"id": 77621,"name": "Brandi Long","age": 20,"phone": "+44 (0)203 319 4880","color": "gray"},
  8. {"id": 81299,"name": "Tonia Sykes","age": 38,"phone": "+44 (0)208 328 3671","color": "blue"},
  9. {"id": 14225,"name": "Leach Durham","age": 23,"phone": "+44 (0)208 280 9572","color": "green"}
  10. ];
  11.  
  12.  
  13.  
  14.  
  15. class TSReactJsonTable1 extends Component {
  16. render() {
  17. return (
  18. <div>
  19. <JsonTable rows = {items} />
  20. </div>
  21. );
  22. }
  23. }
  24.  
  25. export default TSReactJsonTable1;
Add Comment
Please, Sign In to add comment