April 17, 2019 at 1:41pm
In my opinion he was very clear in his answer, although it was very terse. It's better to deprecate and allow interoperability -- but that's not what happened to
injectGlobal => createGlobalStyle.
That being said, he is right. The codemod should take care of it, and it's better to update the interoperational dependencies rather than not updating them.
April 18, 2019 at 9:34am
April 20, 2019 at 11:28pm
May 12, 2019 at 8:39am
I recently gave a nice update to the styled-components-snippets. I find them still super helpful and time saving. Every second counts. Maybe it'll help you.
May 17, 2019 at 9:34am
Cannot resolve module
Which tool is throwing the error?
i have ignore the flow-typed but still i got it...
May 28, 2019 at 10:40am
Hey guys. Currently facing an issue with defaultProps not being applied in V4. I know this issue is raised https://github.com/styled-components/styled-components/issues/2246 but wanted to reach out and see if anyone can help move along as the associated PR fix has been stuck for several months. Thanks :)
June 19, 2019 at 10:15pm
June 21, 2019 at 10:12am
June 23, 2019 at 1:25am
June 24, 2019 at 12:26pm
Anybody knows what it means when your app crashes with the message:
Cannot create styled-component for component: [object Object] and you are not using styled components except as a dependency of another library?
June 25, 2019 at 8:01am
June 25, 2019 at 6:37pm
July 20, 2019 at 10:58pm
August 11, 2019 at 9:14am
Hi Team, We are using grommet with styled component. I am looking for making CSS class name short. What is the purpose of the class name like StyledBox-sc-. How to rename CSS class names at the compilation time.
Hi. You usually have class names like "StyledBox-" if you've got this enabled (https://www.styled-components.com/docs/tooling#better-debugging). Otherwise class names generated by Styled components should be rather short, and not include any component names, etc.
Overall, you can't affect how the class names are generated. Most likely you don't have too. This is one of the thing you let the library to be responsible for. Class names are also vital for SSR, so it's important for styled-components to be as close to their generation as possible.