Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
README.md
<script>
import JSONTree from 'svelte-json-tree'
// your json data to view
const value = {
array: [1, 2, 3],
bool: true,
object: {
foo: 'bar'
},
symbol: Symbol('foo'),
nested: [{
a: [1, '2', null, undefined]
}]
}
</script>
<JSONTree {value} />
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */