modal-react-validation
v0.0.7
Published
react modal message validation
Downloads
2
Maintainers
Readme
modal-react-validation
react modal message validation
Prerequisites
This component uses the following tech stack:
Please make sure you have the right versions and download both packages. You can verify this by using this command in your terminal:
# Check Node.js version
node --version
Install this package
npm install modal-react-validation
Import the Modal component, then you need to call the Modal component with two props and write your message.
import React, { useState } from 'react'
import { ModalComponent } from 'modal-react-validation'
function App() {
const [open, setOpen] = useState(false)
return (
<ModalComponent open={open} setOpen={setOpen}>
your message
</ModalComponent>
)
}
export default App
License
MIT © nivoix