JSFiddle - React, Tailwind, and code Playground
by Jaikrat Tariyal
HTML
<link rel="stylesheet" href="//static.jstree.com/3.2.1/assets/dist/themes/default/style.min.css">
<script src="//static.jstree.com/3.2.1/assets/dist/jstree.min.js"></script>
<div id="tree"></div>
JavaScript
$('#tree').jstree({
'core' : {
'data' : [
{ "id" : "ajson2", "parent" : "#", "text" : "Root node 2" },
{ "id" : "ajson3", "parent" : "ajson2", "text" : "Child 1" },
{ "id" : "ajson4", "parent" : "ajson3", "text" : "Child 2" },
]
}
});