From 5e220e22318aab3c1aee02a30e62f3eee35c35ba Mon Sep 17 00:00:00 2001 From: Harsh Date: Sat, 16 Oct 2021 21:20:03 +0530 Subject: [PATCH] renamed a function in TextForm.js and added the reason why .mjs files are included --- module1.mjs | 2 ++ module2.mjs | 2 ++ src/components/TextForm.js | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/module1.mjs b/module1.mjs index 76686f4..95743a2 100644 --- a/module1.mjs +++ b/module1.mjs @@ -1,3 +1,5 @@ +// This file is just for understand import & export in js. It is not related to this project + import dza, {a, c, d} from './module2.mjs' console.log(dza); console.log(c); diff --git a/module2.mjs b/module2.mjs index 7f385af..ec02ff0 100644 --- a/module2.mjs +++ b/module2.mjs @@ -1,3 +1,5 @@ +// This file is just for understand import & export in js. It is not related to this project + const a = "Harry"; const b = "Rohan"; const c = "Aakash"; diff --git a/src/components/TextForm.js b/src/components/TextForm.js index 07549d6..b5f0ee2 100644 --- a/src/components/TextForm.js +++ b/src/components/TextForm.js @@ -8,7 +8,7 @@ export default function TextForm(props) { props.showAlert("Converted to uppercase!", "success"); } - const handleLoClick = ()=>{ + const handleLowerClick = ()=>{ let newText = text.toLowerCase(); setText(newText) props.showAlert("Converted to lowercase!", "success"); @@ -48,7 +48,7 @@ export default function TextForm(props) { - +