Skip to content

billiegoose/react-object-inspector-standalone

 
 

Repository files navigation

react-object-inspector-standalone

Get the goodness of react-object-inspector without actually dealing with React. Forked from react-webpack-wrapper-example.

Example Usage

See this example live

<body>
  <p>Here is some fancy data:</p>
  <div id="inspector"></div>

  <script src="https://unpkg.com/react-object-inspector-standalone"></script>
  <script>
    ObjectInspector(document.getElementById('inspector'), {
      here: {
        is: ['some', 'fancy', 'data'],
      }
    })
  </script>
</body>

To build manually

  1. Clone the repo
  2. Run npm install
  3. Run npm run build
  4. Run the example npx serve

Step 3 will generate two files in the dist folder. A object-inspector.js and object-inspector.min.js.

About

A example project for wrapping react components for consumption for non react websites using webpack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.6%
  • HTML 23.4%