🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-dump-simple

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dump-simple

React Dump Simple Component

0.0.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

React Dump Simple Component

Sometimes you just want to dump the contents of a value onto the page.

If you want some colorful fanciness - check out react-dump <-- more featureful

But if you want something simple and plain, but still effective (maybe for an internal admin interface)...

See storybook for examples

import Dump from 'react-dump-simple';

const MyPage = props => (
  <div>
    Here is something I'm trying to debug:
    <Dump value={props.userData} />
  </div>
);

const MyComponentDumpsAllProps = props => (<Dump value={props} />);

(this is super simple, but sometimes useful when developing)

FAQs

Package last updated on 16 May 2017

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