I'm Jarod Peachey. I'm a dedicated front-end web developer with a passion for going above and beyond to create high-quality designs and UXs. Oh yeah, I know Javascript + HTML + CSS + more π
It's very similar in syntax to Styled Components (can't tell the difference) but it's got one major benefit: instead of extracting styles on runtime, it does this when you build the production version. It puts each components styles in a separate, pure CSS stylesheet.
Here's a list of features from their website:
Write CSS in JS, but with zero runtime, CSS is extracted to CSS files during
build
Familiar CSS syntax with Sass like nesting
Use dynamic prop based styles with the React bindings, uses CSS variables behind
the scenes
Easily find where the style was defined with CSS sourcemaps
Lint your CSS in JS with stylelint
Use JavaScript for logic, no CSS preprocessor needed
Optionally use any CSS preprocessor such as Sass or PostCSS
This gives you all the benefits of pure CSS, as well as all the benefits of CSS-in-JS, without any of the downsides.
I would highly recommend Linaria as an alternative for JSS, and no, I don't work for them. I just love using it!
Iβve been using css module for a long time
But I started to hate writing the css import every time without auto complete
Styled component got the auto complete but I donβt like css in Js
This seems to be a great option for me
Thx
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've used SASS, Styled Components, pure CSS, CSS-in-JS and CSS modules, and the clear winner to me is Linaria.
linaria.now.sh/
It's very similar in syntax to Styled Components (can't tell the difference) but it's got one major benefit: instead of extracting styles on runtime, it does this when you build the production version. It puts each components styles in a separate, pure CSS stylesheet.
Here's a list of features from their website:
This gives you all the benefits of pure CSS, as well as all the benefits of CSS-in-JS, without any of the downsides.
I would highly recommend Linaria as an alternative for JSS, and no, I don't work for them. I just love using it!
Iβve been using css module for a long time
But I started to hate writing the css import every time without auto complete
Styled component got the auto complete but I donβt like css in Js
This seems to be a great option for me
Thx