Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c829114

Browse files
authored
Merge pull request airbnb#1047 from airbnb/css-in-js
[guide] Add CSS-in-JavaScript section
2 parents 3a7210e + c640633 commit c829114

File tree

2 files changed

+435
-1
lines changed

2 files changed

+435
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
Other Style Guides
1010
- [ES5 (Deprecated)](https://github.com/airbnb/javascript/tree/es5-deprecated/es5)
1111
- [React](react/)
12+
- [CSS-in-JavaScript](css-in-javascript/)
1213
- [CSS & Sass](https://github.com/airbnb/css)
1314
- [Ruby](https://github.com/airbnb/ruby)
1415

@@ -2218,7 +2219,7 @@ Other Style Guides
22182219
- [19.2](#commas--dangling) Additional trailing comma: **Yup.** eslint: [`comma-dangle`](http://eslint.org/docs/rules/comma-dangle.html) jscs: [`requireTrailingComma`](http://jscs.info/rule/requireTrailingComma)
22192220

22202221
> Why? This leads to cleaner git diffs. Also, transpilers like Babel will remove the additional trailing comma in the transpiled code which means you don't have to worry about the [trailing comma problem](es5/README.md#commas) in legacy browsers.
2221-
2222+
22222223
```javascript
22232224
// bad - git diff without trailing comma
22242225
const hero = {

0 commit comments

Comments
 (0)