Skip to content

Instantly share code, notes, and snippets.

View TimMikeladze's full-sized avatar
🚏
debugging life

Tim Mikeladze TimMikeladze

🚏
debugging life
View GitHub Profile
@TimMikeladze
TimMikeladze / react-in-style.md
Last active April 11, 2016 17:59
How to React in style (pardon the pun)

The usage of React components in apps has become more popular over the last two years and rightly so. React provides a very structured paradigm for building the ui over your app, managing state and handling events. Although opinionated React doesn't make any assumptions towards how you go about styling your components yet it opens up some interesting avenues of thinking about CSS.

This talk will explore the some of different ways you can handle style in React, touching upon some of the following points.

  • The advantages of defining CSS as Javascript objects
  • CSS Modules
  • How do styled component libraries such as react-bootstrap and material-ui fit in to the mix?
  • Using preprocessors such as Sass
  • What to make of all this, which approach should you use when and why?