modale réalisée pour le P14 d'Openclassrooms
npm install rudy-modal ### comment:
in your project:
* add the text that you'ld like display
* add the function of the confirmation' return when the cross "X"
in the modal has been clicked
### exemple of use:
import {Modal} from 'rudy-modal';
function App() {
const [visibility, setVisibility] = useState("true");
const text = "....." // put your message;
const modalState = () {
setVisibility("false")
}
return (
<>
{visibility =="true" ?
: ""}
>
)
}