simple reactjs modal box
npm install react-js-dialog-box> simple react.js modal box
 

``bash`
npm install --save react-js-dialog-box
`jsx
import React from 'react'
import { ReactDialogBox } from 'react-js-dialog-box'
import 'react-js-dialog-box/dist/index.css'
class App extends React.Component {
constructor() {
super()
this.state = {
isOpen: false
}
}
openBox = () => {
this.setState({
isOpen: true
})
}
closeBox = () => {
this.setState({
isOpen: false
})
}
render() {
return (
{this.state.isOpen && (
<>
modalWidth='60%'
headerBackgroundColor='red'
headerTextColor='white'
headerHeight='65'
closeButtonColor='white'
bodyBackgroundColor='white'
bodyTextColor='black'
bodyHeight='200px'
headerText='Title'
>
export default App
``
MIT © abodmicheal