npm install react-closeablestart the webpack dev server
```
npm run build
npm run example
npm run start
build
``
npm run build
Example:
`
import React, { PureComponent } from 'react'
import { enhanceWithCloseable } from '../lib'
import styles from './style.scss'
const CloseableDiv = enhanceWithCloseable(({ children, ...props }) =>
export class App extends PureComponent {
constructor(props) {
super(props)
this.state = {
open: true,
}
}
close = () => this.setState({ open: false })
open = () => this.setState({ open: true })
render() {
return (