question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
mxstbrcommented, Nov 20, 2016

Definitely didn’t think you were bashing styled-components, it’s always good to have a discussion!

I’m pretty sure I could cheat pretty easily and get to “100% test coverage” without having any confidence in my library. 😉 it’s a pretty vanity number imo, but I can see where you’re coming from in that it at least makes sure there’s no undefined is not a function-type errors.

We chose not to allow custom extensions, as we didn’t see the value in them. Basically everything a plugin can do you can do with JavaScript. What are you missing from styled-components that would be an extension in another library? (note: we’re working on a “Bourbon for styles in JavaScript”, so things like lighten(color) will soon be a thing in JS land!)

0reactions
steidacommented, Nov 25, 2016

So I changed my mind, again. Sorry for the confusion.

https://github.com/styled-components/styled-components/issues/256

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Thorough Analysis of CSS-in-JS
All CSS-in-JS libraries generate unique CSS class names, a technique pioneered by CSS modules. All styles are scoped to their respective ...
Read more >
JSS
A lib for generating CSS from JavaScript.
Read more >
Why We're Breaking Up with CSS-in-JS - DEV Community ‍ ‍
As the name suggests, CSS-in-JS allows you to style your React components by writing CSS directly in your JavaScript or TypeScript code:.
Read more >
JavaScript HTML DOM - Changing CSS - W3Schools
The HTML DOM allows JavaScript to change the style of HTML elements. Changing HTML Style. To change the style of an HTML element,...
Read more >
The Problems and Benefits of CSS-in-JS - Sparkbox
With CSS-in-JS, design system library components have all of their styles bundled and isolated with the component JavaScript. They can still be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found