File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ JSX allows you to mix HTML and JavaScript.
12
12
13
13
Simple example:
14
14
```
15
- class App extends React.component { //ES6 Class Component Declaration
16
- const value = 'Hello World!'; //A variable declared const cannot be re-declared or re-assigned..
17
- //It cannot get mutated(changed,modified). use let for reassignment.
18
- render() { //lifecycle method to describe what needs to appear on the UI
15
+ class App extends React.component { //ES6 Class Component Declaration
16
+ const value = 'Hello World!'; //A variable declared const cannot be re-declared or re-assigned..
17
+ //It cannot get mutated(changed,modified). use let for reassignment.
18
+ render() { //lifecycle method to describe what needs to appear on the UI
19
19
return(
20
20
<div className = "App">
21
- <h2>{value}</h2> //JSX is used for displaying value. Its curly brackets.
21
+ <h2>{value}</h2> //JSX is used for displaying value. Its curly brackets.
22
22
</div>
23
23
);
24
24
}
You can’t perform that action at this time.
0 commit comments