react-object-inspector-standalone
v1.1.0
Published
A standalone UMD version of react-object-inspector for use in non-React projects
Downloads
3
Readme
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
- Clone the repo
- Run
npm install
- Run
npm run build
- Run the example
npx serve
Step 3 will generate two files in the dist folder. A object-inspector.js and object-inspector.min.js.