Skip to content

Commit 96a4d44

Browse files
authored
Merge pull request #3 from nachovz/patch-3
Update README.md
2 parents 54780e0 + 2531678 commit 96a4d44

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exercises/02-jsx-syntax/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# `02` JSX Syntax
22

3-
Another great feature about the React library is the JSX syntax, which is kind of a mix between Javascript and HTML.
3+
Another great feature about the React library is the ability to use JSX syntax, which is kind of a mix between Javascript and HTML without the need of quotes!
44

5-
## Creating our first component
5+
## Creating our first Component
66

7-
One of the things we can do thanks to JSX is to call function like an HTML tags, for example:
7+
One of the things we can do thanks to JSX is calling functions like an HTML tag, for example:
88
```js
99
// if we declare a function MyFunction
1010
const MyFunction = () => {
@@ -18,8 +18,8 @@ const MyFunction = () => {
1818
FunctionName();
1919
```
2020

21-
When you call a function like that, it becomes a **"React component"**, which is noting else than a function that generates HTML dynamically, whatever the function returns will be replaced in the same place the original `<tag>` was placed.
21+
When you call a function like that, it becomes a **"React component"**, which is a function that generates (returns) HTML dynamically. Whatever the function returns will be replaced in the same place the original `<tag>` was placed.
2222

2323
## Instructions
2424

25-
On the line 11th of index.js, change the way the function is called, call the function as component (using the tag syntax) instead of round brackets.
25+
On the line 11th of index.js, change the way the function is called, call the function as a component (using the tag syntax) instead of parentheses.

0 commit comments

Comments
 (0)