react-lazy-object-view
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

react-lazy-object-view

react-lazy-object-view is a react component wrapper for lazy-object-view.

Example Usage

import React, { Component } from 'react';
import ReactLazyObjectView from 'react-lazy-object-view';

class App extends Component {
  render() {
    const toRender = { "test": "object", "nested": { "yup": 1337.0 } };

    return (
        <ReactLazyObjectView data={toRender} options={{ showLoadingIndicator: true }} />
    );
  }
}

export default App;

All options are listed in the lazy-object-view documentation and are on the Typescipt interface RenderOptions.

Package Sidebar

Install

npm i react-lazy-object-view

Weekly Downloads

26

Version

1.0.0

License

MIT

Unpacked Size

209 kB

Total Files

4

Last publish

Collaborators

  • ameerayoub