modal-23
v1.2.3
Published
modal component for React.JS
Downloads
8
Readme
MODALE-23
A ready-to-use Modal component for React projects with a display message to customize
Requirements
- React 17.0.2+
Installation
$ npm install modal-23
####Usage To use the plugin, import it in your React component. It needs 1 props to work "secondFunction" but you can add 3 more props
- props.secondFunction (obligatory): if you don't use it, create an empty function like:
function foo () { };
```
- props.id - give an ID for the button
- props.buttonText - allows to change the text of the modal button
- props.modalText - allows to change the text of the modal