Created
April 12, 2018 16:44
-
-
Save ratbeard/78f3fdebd2c2b107b2791475cb3acf45 to your computer and use it in GitHub Desktop.
RFC 89: Self closing tag placement when attributes broken across lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Option 1: | |
| <input | |
| id="adminName" | |
| placeholder="Library Name" | |
| required | |
| type="text" | |
| value={this.state.adminName} | |
| onChange={this.setAdminName} /> | |
| # Option 2: | |
| <input | |
| id="adminName" | |
| placeholder="Library Name" | |
| required | |
| type="text" | |
| value={this.state.adminName} | |
| onChange={this.setAdminName} | |
| /> | |
Author
2️⃣
Use it for 2 or more properties? Maybe 3?
option two, but I think I agree with brad, over 3 props else it can run inline
!vote Option 1
- I know how to read
So does Trump.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!vote Option 2