react-dump-simple

0.0.1 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i react-dump-simple

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • zeroasterisk