npm.io
1.1.0 • Published 8 years ago

react-json-pipe

Licence
MIT
Version
1.1.0
Deps
2
Size
3.7 MB
Vulns
1
Weekly
0

react-json-pipe-lib

A react component that exposes similar funcionality to the Angular JSON Pipe.

NPM JavaScript Style Guide

Install

npm install --save react-json-pipe-lib

Usage

import JsonPipe from 'react-json-pipe-lib'

class MyComponent extends Component {
  render () {
    const myObject = {a: 1,array: [0,1,2,'test'],object: {'first-child': true,'second-child': false,'last-child': null},b: 2};
    return (
      <JsonPipe model={myObject} />
    )
  }
}

License

MIT andresggarcia