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

It seems wild to me to write raw HTML and then write a layer of code that works with that specific, bespoke markup to enhance it. You lose the benefits of the code being modular! That's the whole point of it being a component!

What you could do is have some code on the server that generates the markup. That way it's not so bespoke. And the client side code could somehow be aware of what the server is doing, so you're not writing a layer to enhance the code, you're just adding interactivity...

... Congrats! You've just invented server side rendering.



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

Search: