Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styled components: Yes or no? #376

Open
hancush opened this issue Aug 21, 2024 · 1 comment
Open

Styled components: Yes or no? #376

hancush opened this issue Aug 21, 2024 · 1 comment
Labels

Comments

@hancush
Copy link
Member

hancush commented Aug 21, 2024

Background

I recently used styled components for the first time, and it was really nice! The main reason is was nice is that I could pass variables to create new styles on the fly, instead of writing (and maintaining) many minimally different CSS classes. Styled components are slightly polarizing in the React community – do we want to incorporate them into our React repertoire?

Proposal

Research opinions and patterns on styled components.

Deliverables

A little document summarizing pros and cons and, if there are sufficient pros, recommending use cases for DataMade.

Timeline

A day.

@hancush hancush added the R&D label Aug 21, 2024
@hancush
Copy link
Member Author

hancush commented Aug 21, 2024

This observation is based:

The thing that made me love React is that it gives you a way to pack logic (state, effects) and UI (JSX) into a reusable box. A lot of folks focus on the "reusable" aspect, but in my opinion, the cooler thing is that it's a box.

https://joshwcomeau.com/css/styled-components/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant