diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-18 15:34:37 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-18 15:34:37 +0530 |
commit | 93dd72920e5a72c684f53071f4ab1972bf1e878c (patch) | |
tree | a9d32a0ff8a8237003caa7fbb4dd00908a669978 /src/components/BillingPage.js | |
parent | dafb3638bbd1184f15ad9b7637178ea6ce510d90 (diff) |
created a server to just serve the static app
Diffstat (limited to 'src/components/BillingPage.js')
-rw-r--r-- | src/components/BillingPage.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/BillingPage.js b/src/components/BillingPage.js index fbd9732..06a80a6 100644 --- a/src/components/BillingPage.js +++ b/src/components/BillingPage.js @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React, { useState, useEffect } from "react"; import AddNewItemForm from "./Form/AddNewItemForm"; import ItemsDisplay from "./Display/ItemsDisplay"; import SummaryDisplay from "./Display/SummaryDisplay"; @@ -38,6 +38,9 @@ const sampleData = [ ]; const BillingPage = () => { + useEffect(() => { + alert("yo this app in beta"); + }, []); // to be handled by backend const defGSTValue = 18; @@ -48,6 +51,9 @@ const BillingPage = () => { ); }; + useEffect(() => { + }, [items]); + return ( <div> <AddNewItemForm savedItems={sampleData} addItem={getItems} defGSTValue={defGSTValue}/> |