Get started with react-json-tree CDN
MIT licensed
React-JSON-Tree: Renders JSON as interactive, collapsible trees in React.
Tags:- react
- json viewer
Stable version
Copied!
How to start using react-json-tree CDN
import React from 'react';
import JSONTree from 'react-json-tree';
const MyJson = {
"name": "John Doe",
"age": 30,
"city": "New York",
"hobbies": ["reading", "swimming", "coding"],
"address": {
"street": "123 Main St",
"zip": "10001"
}
};
function App() {
return (
<div>
<h1>JSON Tree Example</h1>
<JSONTree data={MyJson} />
</div>
);
}
export default App;