react-json-pipe

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

Usage no npm install needed!

<script type="module">
  import reactJsonPipe from 'https://cdn.skypack.dev/react-json-pipe';
</script>

README

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