New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

react-prettify-json

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-prettify-json

Simple React Component for displaying data in a pretty way

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

Prettify JSON

Minimalist package which makes possible for you to display your JSON as a element on your React App, personalizing the colors.

NPM JavaScript Style Guide

Install

npm install --save react-prettify-json

Usage

import React from 'react';

import PrettyJSON from 'react-prettify-json';

const Example: React.FC = () =>  {
  const jsonObject = {
    "react": ">=16.0.0",
    "@unform/core": ">=5.0.0"
  }

  return (
    <PrettyJSON 
      jsonObject={jsonObject}
    />
  )
}

API

Props

If a prop is Required, the default field will appear empty.

nametypedefault

License

MIT © Bruno De Masi

FAQs

Package last updated on 24 Apr 2020

Related posts