Hacker News new | past | comments | ask | show | jobs | submit login

Hopefully your link will be a component, so you only need replace one line anyway.

Then again if your styles are abstracted to a component, your CSS framework is irrelevant!




Why would you use a component for something that's already a built-in HTML element?


I don't know, but a consulting company saddled us with a monstrosity that does exactly this.

Maybe it's some sort of lock-in feature.


One example is if I was using react it would be used to encapsulate a react-router Link and an anchor tag in a component, and use props to differentiate between inbound and outbound links.


Why would you style an anchor element when your browser already has default styles for it?


Because you want it to look different, such as the color being consistent with the rest of your website?




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: