Skip to content

Commit c640633

Browse files
committed
Add note about where where mystery objects come from
As @ljharb pointed out, we are using some functions like `css()` and `withStyles()`, but make no mention of what they are or where they come from. Since they come from react-with-styles, let's make this clear.
1 parent c74caea commit c640633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-in-javascript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
260260
## Themes
261261
262-
- Use an abstraction layer such as [react-with-styles](https://github.com/airbnb/react-with-styles) that enables theming.
262+
- Use an abstraction layer such as [react-with-styles](https://github.com/airbnb/react-with-styles) that enables theming. *react-with-styles gives us things like `withStyles()`, `ThemedStyleSheet`, and `css()` which are used in some of the examples in this document.*
263263
264264
> Why? It is useful to have a set of shared variables for styling your components. Using an abstraction layer makes this more convenient. Additionally, this can help prevent your components from being tightly coupled to any particular underlying implementation, which gives you more freedom.
265265

0 commit comments

Comments
 (0)