[inline] Styling in React – #ReactEurope


I would begin with a 5 minute refresh on CSS.

The next 10-12 minutes will be about how and why to apply inline styles in React. I will share my ups and downs, and what I learned – like sometimes it really is necessary to put the styles inline.
I am dedicating part of the talk for the style attribute: what is is and how is/should it be used – focusing on the fact that it accepts a JavaScript object rather then a a CSS string; prefixes for different browsers are also included here.

The last past of the talk is about a more modern approach: styled components. I am sharing this part as a JS alternative to inline styling.

Leave a Reply

Your email address will not be published. Required fields are marked *