Framework guides
Getting Started
- Install the library:
bash
- Add the component:
jsx
// 📃 app.jsx
import { JsonViewer } from "@franmella/json-viewer";
export default function App() {
return (
<div>
<JsonViewer />
</div>
);
}- Usage:
jsx
// 📃 app.jsx
import { JsonViewer } from "@franmella/json-viewer";
export default function App() {
const json = {
name: "John Doe",
age: 30,
cars: [
{ name: "Ford", models: ["Fiesta", "Focus", "Mustang"] },
{ name: "BMW", models: ["320", "X3", "X5"] },
{ name: "Fiat", models: ["500", "Panda"] },
],
};
return (
<div>
<JsonViewer data={json} />
</div>
);
}