-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.tsx
37 lines (32 loc) · 1003 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import 'react-app-polyfill/ie11';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import {list, configurations} from './constants';
import './index.scss';
import { MultilevelMenu } from '../.';
const App = () => {
const selectedItem = (event) => {
console.log(event);
}
return (
<div className="app__page-container">
<div className="app__wrapper-container">
<div className="app__plugin-branding">
<h1>react-multilevel-menu</h1>
<span className="short-desc">Multi-Level Menu for React Projects</span>
</div>
<div className="app__demo-container">
<div className="app__demo-wrapper">
<MultilevelMenu
list={list}
configuration={configurations}
selectedListItem={selectedItem}
selectedLabel={selectedItem}
/>
</div>
</div>
</div>
</div>
);
};
ReactDOM.render(<App />, document.getElementById('root'));