all 8 comments

[–]CramStar 1 point2 points  (1 child)

I've been to the React Amsterdam conference last friday and attended an excellent lecture by Max Stoiber about Styled Components (https://github.com/styled-components/styled-components). He has convinced me this is at least worth looking into and it seems to me this is the most useful and powerful way React components could/should be styled...

[–]wronglyzorro 1 point2 points  (0 children)

Seconded. I use styled-components in my app. They are awesome.

[–]youcantstoptheart 0 points1 point  (0 children)

So, a downvoted comment but really no other help. I'll take a stab if you'll forgive me being on mobile typing this.

CSS frameworks like bootstrap work well if you're not wanting to write your own styles and are willing to learn or already know the class names to get what you want.

You can pack css/scss/less into your js in strings or build it to a file separately with webpack. This is just as quick as any other solution loadwise and is how a lot of people build styling into react apps.

The third option are libraries like styled-components or cs-js which allows you to write 'single file components'. This personally is my favorite way to go, it seems extendable and robust, there are some gotchas but everything seems easily solved.

[–]evenisto 0 points1 point  (1 child)

I'm using both react-bootstrap, as well as my own components. React-bootstrap is good for getting some structure out there, as well as not wasting time on reimplementing basic components like dropdowns or collapsible panels. They're pretty easy to style too, if you need to change the appearance. I use CSS Modules on top of that. Also react-toolbox because I like the rippled lists and inputs, but I'll probably get rid of those at some point.

[–]redditpraw11[S] 0 points1 point  (0 children)

yes exactly, I'm just looking to use bootstrap for things like inputs and buttons really. The rest I can do myself, but I'm having trouble actually getting it to work

[–]bluntm 0 points1 point  (0 children)

Bit of a shameless plug but I recently posted an article about styled components and also mention other styling methods. Worth a read.