Created
September 22, 2021 10:43
-
-
Save harrybanda/f86d89a991c00f267300dd42af35e1a4 to your computer and use it in GitHub Desktop.
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 ForgeUI, { render, Fragment, Macro, useState } from "@forge/ui"; | |
import { BooksTable } from "./BooksTable"; | |
import { BookDialog } from "./BookDialog"; | |
const App = () => { | |
const [isOpenModal, setOpenModal] = useState(false); | |
return ( | |
<Fragment> | |
<BooksTable isOpenModal={isOpenModal} setOpenModal={setOpenModal} /> | |
<BookDialog isOpenModal={isOpenModal} setOpenModal={setOpenModal} /> | |
</Fragment> | |
); | |
}; | |
export const run = render(<Macro app={<App />} />); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment