Skip to content

[Docs] Reword section on React without JSX#3167

Merged
sophiebits merged 1 commit intofacebook:masterfrom
allofthenorthwood:docs-grammar
Feb 17, 2015
Merged

[Docs] Reword section on React without JSX#3167
sophiebits merged 1 commit intofacebook:masterfrom
allofthenorthwood:docs-grammar

Conversation

@allofthenorthwood
Copy link
Contributor

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!

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!
@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@sophiebits
Copy link
Collaborator

Thanks!

sophiebits added a commit that referenced this pull request Feb 17, 2015
[Docs] Reword section on React without JSX
@sophiebits sophiebits merged commit 6d97c70 into facebook:master Feb 17, 2015
sophiebits added a commit that referenced this pull request Feb 18, 2015
[Docs] Reword section on React without JSX
zpao added a commit that referenced this pull request Feb 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants