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) { - +