Skip to content

Conversation

@cooperka
Copy link
Contributor

@cooperka cooperka commented Oct 1, 2015

Add reasoning for using double quotes in JSX, since it's the opposite of the recommendation for JS strings. There may be other reasons as well, but the one added here seems the most compelling to me.

@ljharb
Copy link
Collaborator

ljharb commented Oct 1, 2015

There's also that HTML attributes typically (conventionally) use double quotes, not single quotes, but that may not be as compelling a reason to be front-and-center.

@cooperka
Copy link
Contributor Author

cooperka commented Oct 1, 2015

Good point @ljharb, added.

goatslacker added a commit that referenced this pull request Oct 5, 2015
Add reasoning for using double quotes in JSX
@goatslacker goatslacker merged commit 8d6a1b4 into airbnb:master Oct 5, 2015
@cooperka cooperka deleted the react-quote-reasoning branch October 6, 2015 02:23
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