Created
February 9, 2021 06:08
-
-
Save ManiruzzamanAkash/f576b79376341a011c0734b9011d8038 to your computer and use it in GitHub Desktop.
Use of Demo Modal in APp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
import SimpleModal from "./Components/SimpleModal"; | |
import Task1Form from "./Components/Task1Form"; | |
import Task2Form from "./Components/Task2Form"; | |
export default function App() { | |
const [show, setShow] = useState(false); | |
return ( | |
<div className="App"> | |
<h2>Modal Demo</h2> | |
<button className="btn btn-info btn-sm" onClick={() => setShow(true)}>Open Modal 1</button> | |
<hr /> | |
<SimpleModal | |
show={show} | |
handleClose={() => setShow(false)} | |
handleShow={() => setShow(true)} | |
modalTitle="Modal Demo" | |
> | |
Simple Test Modal | |
</SimpleModal> | |
<Task1Form /> | |
<br/> | |
<br/> | |
<Task2Form /> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment