1. import { Table } from 'uskin';
    2. const column = [{
    3. title: 'ID',
    4. width: '150px',
    5. key: 'id',
    6. dataIndex: 'id',
    7. }, {
    8. title: 'Category',
    9. width: '120px',
    10. key: 'category',
    11. dataIndex: 'category',
    12. }, {
    13. title: 'Level',
    14. key: 'level',
    15. dataIndex: 'level',
    16. }, {
    17. title: 'Price',
    18. key: 'price',
    19. dataIndex: 'price',
    20. }, {
    21. title: 'Double Price',
    22. key: 'double_price',
    23. render: (col, item) => (<div style={{ color: '#f78913' }}>{item.price * 2}</div>),
    24. }];
    25. const data = [{
    26. id: 1,
    27. category: 'Micro-1',
    28. level: 'First Level',
    29. price: '0.056',
    30. }, {
    31. id: 2,
    32. category: 'Standard-3',
    33. level: 'Second Level',
    34. price: '0.444',
    35. }, {
    36. id: 3,
    37. category: 'Micro-2',
    38. level: 'Third Level',
    39. price: '0.056',
    40. }, {
    41. id: 4,
    42. category: 'Standard-2',
    43. level: 'Fourth Level',
    44. price: '0.444',
    45. }];
    46. ReactDOM.render(<div>
    47. <Table
    48. column={column}
    49. data={data}
    50. dataKey={'id'}/>
    51. </div>, mountNode);