-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
20 lines (16 loc) · 883 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react';
import ReactDOM from 'react-dom';
import TreeComponent from './components/TreeComponent';
import $ from 'jquery';
//import registerServiceWorker from './registerServiceWorker';
const hierarchyJsonv = $('#content-treegen').attr("data-value");
const pushLabelValue = $('#content-treegen').attr("data-pushlabelvalue");
const unpushAlertText = $('#content-treegen').attr("data-unpushalerttext");
const pushAlertText = $('#content-treegen').attr("data-pushalerttext");
const funcionMode = $('#content-treegen').attr("data-functionmode");
let hierarchyJson = JSON.parse(hierarchyJsonv);
ReactDOM.render(<TreeComponent hierarchyJson={hierarchyJson} functionMode={funcionMode} htmlId="tree1"
pushLabelValue={pushLabelValue}
unpushAlertText={unpushAlertText}
pushAlertText={pushAlertText}/>, document.getElementById('root-treegen'));
//registerServiceWorker();