Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I personally find a prop to be a perfectly acceptable solution - you can define styles in your JS and share between components if need be. But I reckon there are folks who'd prefer passing class names to define their styles in CSS.


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

Search: