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

Context sensitive components is exactly what I want. At the moment you have to compute that context on the server and output the correct class names (or on the front-end with React etc, doesn't matter). It would be nice for a component to not be told about it's context but it's CSS can infer it either through parent container breakpoints or something else.

There's too many negotiation between containers because a child component doesn't understand where it is, components are very "dumb" right now. We need smart context sensitive components.



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

Search: