class ClickOutside extends PureComponent { constructor(props) { super(props); } componentDidMount = () => { document.addEven