# react-json-to-table

> Convert json to HTML

Latest version **0.1.7** (published 2020-10-08) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install react-json-to-table
pnpm add react-json-to-table
yarn add react-json-to-table
bun add react-json-to-table
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2020-10-08 |
| First published | 2018-08-16 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 2 |
| Unpacked size | 60.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 37 |
| Author | Riza Nugraha |
| Maintainers | pvannierop, ewelinag, gijskant, oplantalech, rnugraha |
| Keywords | react, json, table, html |

## Links

- npm: https://www.npmjs.com/package/react-json-to-table
- Repository: https://github.com/thehyve/react-json-to-table
- Homepage: https://github.com/thehyve/react-json-to-table#readme
- Issues: https://github.com/thehyve/react-json-to-table/issues
- npm.io page: https://npm.io/package/react-json-to-table

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.7.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.7.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.7 (latest) — 2020-10-08
- 0.1.6 — 2020-09-16
- 0.1.5 — 2019-01-28
- 0.1.4 — 2019-01-25
- 0.1.3 — 2018-09-20
- 0.1.2 — 2018-08-17
- 0.1.1 — 2018-08-16
- 0.1.0 — 2018-08-16

## README

# react-json-to-table

React library to convert JSON to HTML <table>

# Installation

`npm install react-json-to-table`

# Usage

https://codesandbox.io/s/jn3z0mmw2v

```

import { JsonToTable } from "react-json-to-table";

function App() {
  // ===================== //
  // JSON Object
  // ===================== //
  const myJson = {
    "Student": { name: "Jack", email: "jack@xyz.com" },
    "Student id": 888,
    "Sponsors": [
      { name: "john", email: "john@@xyz.com" },
      { name: "jane", email: "jane@@xyz.com" }
    ]
  };

  return (
    <div className="App">
      {/* ===================== */}
      {/* HOW TO USE IT         */}
      {/* ===================== */}
      <JsonToTable json={myJson} />
      {/* ===================== */}
    </div>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

```

---
_Source: https://npm.io/package/react-json-to-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
