import React, { MouseEvent } from 'react'; import { CSSTransition } from 'react-transition-group'; import "./style.less"; interface Props { visible: boolean; onClick?: () => void; } interface State {} class Page extends React.Component { constructor(props: Props) { super(props); this.handleClick = this.handleClick.bind(this); } render() { const { visible } = this.props; return (
); } handleClick() { this.props.onClick && this.props.onClick(); } } export default Page;