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

React can be used as a templating library server-side in a node environment (like handlebars). It's a bit heavy for the task but it works.


A huge benefit React (and anything else that uses JSX) has over text-based templating is that you can strictly lint/typecheck JSX because ultimately it's just syntactic sugar over plain JS.


You can typecheck anything there exists a typechecker for.

Vue templates are typechecked for example.




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

Search: