Skip to content

Commit ae2c55f

Browse files
author
Vishal Upadhyay
committed
new images
1 parent 10896d4 commit ae2c55f

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

1_jsx/README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# JSX
22

33
## JSX Overview
4-
![jsx](../images/3_JSX.png)
4+
![jsx](../images/3_JSX.png)
5+
6+
## HTML VS JSX
7+
![html_vs_jsx](../images/4_HTML_VS_JSX.png)
8+
9+
10+
![html_vs_jsx](../images/4.1_HTML_VS_JSX.png)

1_jsx/src/index.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@ import react from "react";
22
import ReactDOM from 'react-dom';
33

44
const App = () => {
5-
return <div>Hello</div>
5+
const buttonText = "Submit"
6+
return (
7+
<div>
8+
<label className="label" htmlFor="name">Enter Name: </label>
9+
<input id="name" />
10+
{/* Using variable as button name */}
11+
<button type="submit" style={{ backgroundColor:'blue', color:'white' }}> {buttonText} </button>
12+
</div>
13+
)
614
};
715

816
ReactDOM.render(<App />, document.querySelector('#root'));

images/4.1_HTML_VS_JSX.png

130 KB
Loading

images/4_HTML_VS_JSX.png

134 KB
Loading
244 KB
Loading

0 commit comments

Comments
 (0)