3 ms·
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.
by throw_m239339 4y ago
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.
- crooked-v 4y agoA 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.
- likeclockwork 4y agoYou can typecheck anything there exists a typechecker for. Vue templates are typechecked for example.