1.1.0 • Published 6 years ago
react-json-pipe v1.1.0
react-json-pipe-lib
A react component that exposes similar funcionality to the Angular JSON Pipe.
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
1.1.0
6 years ago