react-modal-package-npm

1.0.7 • Public • Published

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)

NPM JavaScript Style Guide

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

react-modal-package-npm

Package Sidebar

Install

npm i react-modal-package-npm

Weekly Downloads

3

Version

1.0.7

License

MIT

Unpacked Size

8.36 kB

Total Files

7

Last publish

Collaborators

  • migueranda