Skip to content

Commit

Permalink
Update Introduction.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurjuneja authored Mar 11, 2018
1 parent c5ed91f commit ec49ca8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ReactJs/Introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ JSX allows you to mix HTML and JavaScript.

Simple example:
```
class App extends React.component { //ES6 Class Component Declaration
const value = 'Hello World!'; //A variable declared const cannot be re-declared or re-assigned..
//It cannot get mutated(changed,modified). use let for reassignment.
render() { //lifecycle method to describe what needs to appear on the UI
class App extends React.component { //ES6 Class Component Declaration
const value = 'Hello World!'; //A variable declared const cannot be re-declared or re-assigned..
//It cannot get mutated(changed,modified). use let for reassignment.
render() { //lifecycle method to describe what needs to appear on the UI
return(
<div className = "App">
<h2>{value}</h2> //JSX is used for displaying value. Its curly brackets.
<h2>{value}</h2> //JSX is used for displaying value. Its curly brackets.
</div>
);
}
Expand Down

0 comments on commit ec49ca8

Please sign in to comment.