🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-json-viewer-cool

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-json-viewer-cool

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

2.0.0
latest
Source
npm
Version published
Weekly downloads
16K
-5.19%
Maintainers
1
Weekly downloads
 
Created
Source

react-json-viewer

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

GitHub license

  • Github

Install

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

Usage

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

Props

AttributeTypeDefault
dataanyno

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

Keywords

array-viewer

FAQs

Package last updated on 09 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts