import Button from '../../button'; import Dropdown from '..'; import Menu from '../../menu'; import React from 'react'; import ReactDOM from 'react-dom'; const menu = (
); interface PageStates { visible: boolean; } class App extends React.Component<{}, PageStates> { toggleVisible: () => void; onVisibleChange: (visible: any) => void; constructor(props) { super(props); this.state = { visible: false, }; this.toggleVisible = () => { this.setState({ visible: !this.state.visible, }); }; this.onVisibleChange = visible => { this.setState({ visible, }); }; } render() { return (