Hi, I think it's worth noting every styled-component has a cost (because it is a whole react component unto itself) for your first example it would be a lot more efficient to write something like.
This will have the exact same end result but will generate a lot less JS giving a better user experience. You'll notice I also used BEM but that's just personal preference,.
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.
Hi, I think it's worth noting every styled-component has a cost (because it is a whole react component unto itself) for your first example it would be a lot more efficient to write something like.
This will have the exact same end result but will generate a lot less JS giving a better user experience. You'll notice I also used BEM but that's just personal preference,.