0.1.1 • Published 5 years ago

data_table_react v0.1.1

Weekly downloads
6
License
-
Repository
-
Last release
5 years ago

Installation

The package can be installed via NPM:

npm install data_table_react --save

The package can be installed via yarn:

yarn add data_table_react

Usage

import React from "react";
import { TableMagic } from 'data_table_react'

const Keys = [
    {
        name: "id",
        label: "ID"
    },
    {
        name: "name",
        label: "Name"
    }
]

const Records = [
    {
        id: 1,
        name: "Leo"
    },
    {
        id: 2,
        name: "Susan"
    },
]

class Example extends React.Component {

  render() {
    return (
      <TableMagic
        keys={Keys}
        records={Records}
        name='Friends'
      />
    );
  }
}
0.1.1

5 years ago

0.1.0

5 years ago