From 93dd72920e5a72c684f53071f4ab1972bf1e878c Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 18 Apr 2021 15:34:37 +0530 Subject: created a server to just serve the static app --- src/components/BillingPage.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/components') 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 (
-- cgit v1.2.3