# react-json-viewer-cool

> React json view plugin, supports expansion and hiding. Uses react hooks.

Latest version **2.0.0** (published 2022-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-json-viewer-cool
pnpm add react-json-viewer-cool
yarn add react-json-viewer-cool
bun add react-json-viewer-cool
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-02-09 |
| First published | 2020-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 191.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | coolapt |
| Keywords | array-viewer, base-16, component, interactive, interactive-json, json, json-component, json-display, json-tree, json-view, json-viewer, json-inspector, json-tree, react, react-component, react-json, theme, tree, tree-view, treeview |

## Links

- npm: https://www.npmjs.com/package/react-json-viewer-cool
- Repository: https://github.com/5SSS/react-json-viewer
- Homepage: https://github.com/5SSS/react-json-viewer#readme
- Issues: https://github.com/5SSS/react-json-viewer/issues
- npm.io page: https://npm.io/package/react-json-viewer-cool

## 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

- 2.0.0 (latest) — 2022-02-09
- 1.0.9 — 2020-03-31
- 1.0.8 — 2020-03-31
- 1.0.7 — 2020-03-31
- 1.0.5 — 2020-03-31
- 1.0.4 — 2020-03-31
- 1.0.3 — 2020-03-30
- 1.0.2 — 2020-03-30
- 1.0.1 — 2020-03-30
- 1.0.0 — 2020-03-30

## README

# react-json-viewer

React json view plugin, supports expansion and hiding.use react hooks.

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/5SSS/react-json-viewer)

## Links

- [Github](https://github.com/5SSS/react-json-viewer)

## Install

```js
npm install --save react-json-viewer-cool
```

## Usage

```jsx
import ReactJsonViewer from 'react-json-viewer-cool';

const data = {
  number: 1,
  string: 'hello',
  array: [1, 2, 3, 4],
  object: {
    key: 'oops!'
  },
  bool: true,
  null: null,
  undefined: undefined,
  function: () => {},
  error: new Error('e..'),
  regExp: /\w/g,
  date: new Date(),
  symbol: Symbol('a'),
  map: new Map(),
  set: new Set(),
  any_thing: '...'
};
function App() {
  return <ReactJsonViewer data={data} />;
}
ReactDOM.render(<App />, document.getElementById('root'));
```

## Example

![示例1](./assets/images/example.png)

## Props

| Attribute | Type | Default |
| --------- | ---- | ------- |
| data      | any  | no      |

## Events

not yet...

## PS

如果喜欢请给个星星，谢谢。
If you like, please give me a star, thank you.

如果需要帮助: QQ:1573815240 邮箱: 1573815240@qq.com
if you need help: QQ:1573815240 email: 1573815240@qq.com

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