Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc