comparison icon indicating copy to clipboard operation
comparison copied to clipboard

[Question] Maybe add an item if this tool works with react only?

Open btd opened this issue 8 years ago • 3 comments

Hi, there, even if this comparison to me looks very opinion based. I think it could be very nice to add item for more robust if this tool works not only with react (e.g css modules generates classes - so it is framework agnostic). Also it could be nice to add size of runtime included in bundle.

btd avatar Nov 28 '16 10:11 btd

It is totally based on my own opinions, no doubt about that! It's not as biased as it might look, as I made the comparison before styled-components was a thing.

Those two would certainly be useful additions!

mxstbr avatar Nov 28 '16 10:11 mxstbr

@mxstbr thanks! I actually like how this examples is done. Sorry if it was look a bit rude, did not mean to be.

btd avatar Nov 28 '16 10:11 btd

Ultimate list of feature requests compiled from MicheleBertoli/css-in-js issues

  • @Keyframes support
  • @font-face support
  • @media queries support (in CSS and not via JS simulation)
  • pseudo classes support (in CSS and not via JS simulation)
  • framework agnostic (not just React)
  • SSR
  • ReactNative support
  • Are CSS rule declaration bodies safe by default? React Inline runs everything through escapeTextContentForBrowser to avoid XSS.
  • Are at-media selectors safe by default (@import is open to CSRF)?
  • Is there a build step?
  • Works with CRA without ejecting
  • rendering technics:
    • generates CSS and inserts style element
    • uses inline styles
    • mixed mode: inline styles, CSS, reacts event system for :hover and co (radium)
  • Syntax
    • Object literals
    • Template literals
  • GitHub stars
  • last update
  • size of runtime dependency

See also https://github.com/stereobooster/css-in-js-systematic-approach

stereobooster avatar Nov 29 '17 15:11 stereobooster