File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ // This file is just for understand import & export in js. It is not related to this project
2
+
1
3
import dza , { a , c , d } from './module2.mjs'
2
4
console . log ( dza ) ;
3
5
console . log ( c ) ;
Original file line number Diff line number Diff line change
1
+ // This file is just for understand import & export in js. It is not related to this project
2
+
1
3
const a = "Harry" ;
2
4
const b = "Rohan" ;
3
5
const c = "Aakash" ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default function TextForm(props) {
8
8
props . showAlert ( "Converted to uppercase!" , "success" ) ;
9
9
}
10
10
11
- const handleLoClick = ( ) => {
11
+ const handleLowerClick = ( ) => {
12
12
let newText = text . toLowerCase ( ) ;
13
13
setText ( newText )
14
14
props . showAlert ( "Converted to lowercase!" , "success" ) ;
@@ -48,7 +48,7 @@ export default function TextForm(props) {
48
48
< textarea className = "form-control" value = { text } onChange = { handleOnChange } style = { { backgroundColor : props . mode === 'dark' ?'#13466e' :'white' , color : props . mode === 'dark' ?'white' :'#042743' } } id = "myBox" rows = "8" > </ textarea >
49
49
</ div >
50
50
< button disabled = { text . length === 0 } className = "btn btn-primary mx-1 my-1" onClick = { handleUpClick } > Convert to Uppercase</ button >
51
- < button disabled = { text . length === 0 } className = "btn btn-primary mx-1 my-1" onClick = { handleLoClick } > Convert to Lowercase</ button >
51
+ < button disabled = { text . length === 0 } className = "btn btn-primary mx-1 my-1" onClick = { handleLowerClick } > Convert to Lowercase</ button >
52
52
< button disabled = { text . length === 0 } className = "btn btn-primary mx-1 my-1" onClick = { handleClearClick } > Clear Text</ button >
53
53
< button disabled = { text . length === 0 } className = "btn btn-primary mx-1 my-1" onClick = { handleCopy } > Copy Text</ button >
54
54
< button disabled = { text . length === 0 } className = "btn btn-primary mx-1 my-1" onClick = { handleExtraSpaces } > Remove Extra Spaces</ button >
You can’t perform that action at this time.
0 commit comments