react-modal-package-npm
v1.0.7
Published
react modal
Downloads
4
Maintainers
Readme
react-modal-package-npm
react modal react-modal-package-npm is a React component that deploys a modal. This modal is designed to be displayed when validating a form.
Props in the code makes possible to deal with the behavior of the component :
- content : allows to add any kind of html content
- handleChange : expected to receive the Usetate function of the parent component to deal with open/close on the go
- value : initial state of the Modal (opened or closed)
Install
npm install --save react-modal-package-npm
Usage
import React, { Component } from 'react'
import MyComponent from 'react-modal-package-npm'
import 'react-modal-package-npm/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
}
License
MIT © Migueranda