para-modal
v1.0.3
Published
A reusable, flexible react modal
Downloads
3
Maintainers
Readme
para-modal
Installation & Usage
npm install para-modal --save
inside index.html
<div id="modal"></div>
Include the Component
import React from 'react'
import Modal from 'para-modal';
class Component extends React.Component {
render() {
return (
<Modal close={() => {console.log('pass a fucntion as a prop to close the modal')} }>
<p>This is my modal content</p>
</Modal>
)
}
}