c-hive / guides

Guides for code style, way of working and other development concerns
MIT License
26 stars 5 forks source link

Update React Styling and CSS guide #4

Closed thisismydesign closed 4 years ago

thisismydesign commented 5 years ago

We ended up solving "Store CSS-in-JS styles in separate files" a bit differently. Let's update the guide.

thisismydesign commented 4 years ago

Done in https://github.com/c-hive/guides/commit/7aa176e2e090a6c6ed31a7cc949f2241a5f71a32

In the end, using styled makes sense. The reason I preferred css is that then there was no issue with passing props. However, props can be quite easily passed as shown in the new example.