Skip to content

React/JSX Style Guide - #331

Merged
alvinsng merged 2 commits into
masterfrom
react_style
Apr 30, 2015
Merged

React/JSX Style Guide#331
alvinsng merged 2 commits into
masterfrom
react_style

Conversation

@alvinsng

Copy link
Copy Markdown
Contributor

Lets share our internal React/JSX style guide!

@hshoff @goatslacker @spikebrehm

@iamnirav

Copy link
Copy Markdown
Contributor

😁 👍

@spikebrehm

Copy link
Copy Markdown
Collaborator

👍

Comment thread react/README.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sold on the /> goes to new line. I know the benefit is the same as the additional trailing comma, but it adds noising lines that make scanning a render call harder. So the tradeoff is easier to read vs. nice git diffs.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, closing angles on new lines look really bad

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker for merging. I'll follow up in a separate issue.

Comment thread react/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing .

@alvinsng

Copy link
Copy Markdown
Contributor Author

Thanks everyone for the review!

alvinsng added a commit that referenced this pull request Apr 30, 2015
@alvinsng
alvinsng merged commit 9563e1a into master Apr 30, 2015
@alvinsng
alvinsng deleted the react_style branch April 30, 2015 20:10
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.

6 participants