React - Styling

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > React

1 - About

Styling a component in React.

Advertising

3 - Methodology

3.1 - Traditional

Traditional CSS-file-based styling with the import of stylesheet (with SASS, PostCSS, ..)

SSR does not like it very much.

3.2 - Inline

See React - Style Attribute

  • No Pseudo Classes/Element
  • No Media Query
  • No Vendor Autoprefixing
  • No Animation / Keyframes
  • !important for override
  • No Style fallback
  • Performance ? Larger HTML, larger JS

3.3 - All Css in Js

Advertising

4 - Documentation / Reference

web/javascript/react/style.txt · Last modified: 2019/05/30 14:32 by gerardnico