planett-table

planett table

Usage no npm install needed!

<script type="module">
  import planettTable from 'https://cdn.skypack.dev/planett-table';
</script>

README

Planett Table

Install

  npm install planett-table --save

Example

  import React from 'react';
  import ReactDOM from 'react-dom';
  import Table from 'planett-table';

  (() => {
    ReactDOM.render(
      <Table>
        <thead>
          <tr>
            <th>th 1</th>
            <th>th 2</th>
          </tr>
        </thead>

        <tbody>
          <tr>
            <td>line 1 td 1</td>
            <td>line 1 td 2</td>
          </tr>
          <tr>
            <td>line 2 td 1</td>
            <td>line 2 td 2</td>
          </tr>
        </tbody>
      </Table>,
      document.getElementById('root')
    );
  })();