import { Button, } from '../Button'; import classNames from 'classnames'; import { IClickerOwnProps, } from './IClickerOwnProps'; import { IClickerState, } from './IClickerState'; import * as React from 'react'; import styles from './index.less'; export class Clicker extends React.PureComponent { public state = { clicked: false }; public render = () => { const { children, className, contentAfterClick, } = this.props; const { clicked } = this.state; return ( ); }; private click = () => this.setState({ clicked: true }); }