1 | import Navbar from '../src';
|
2 | import React, { Component } from 'react';
|
3 | import ReactDOM from 'react-dom';
|
4 |
|
5 |
|
6 |
|
7 | class Demo extends Component {
|
8 | constructor(props, context) {
|
9 | super(props, context);
|
10 | this.state = {
|
11 | expanded : false
|
12 | }
|
13 | }
|
14 | onToggle(value) {
|
15 | this.setState({expanded:value});
|
16 | }
|
17 | render(){
|
18 | return(
|
19 | <div>
|
20 |
|
21 |
|
22 | </div>
|
23 | )
|
24 | }
|
25 | }
|
26 | export default Demo; |
\ | No newline at end of file |