0.0.1 • Published 7 years ago

react-dump-simple v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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)