Skip to content

Add reasoning for using double quotes in JSX #534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 5, 2015
Merged

Add reasoning for using double quotes in JSX #534

merged 2 commits into from
Oct 5, 2015

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