1.0.3 • Published 4 years ago

para-modal v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

para-modal

npm version

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>
    )
  }
}