dillon1000/react

Commit

[Docs] Reword section on React without JSX

Summary:
This section was confusing. I reworded it from:

"JSX is completely optional. You don't have to use JSX with React.
You can create these trees through `React.createElement`. The first
argument is the tag, pass a properties object as the second
argument and children to the third argument."

to:

"JSX is completely optional; you don't have to use JSX with React.
You can create React elements in plain JavaScript using
`React.createElement`, which takes a tag name or component, a
properties object, and variable number of optional child
arguments."

and additionally added another child element to the example code.

Test Plan:
Read the new paragraph!
Browse files
Changed paths1 file
First-parent comparison
M docs/docs/02-displaying-data.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…