Re:Things every React.js beginner should know
by pekk on Monday January 25, 2016 @12:05PM
(#10968321)
If you are trying to make a language that doesn't need a different syntax for logic and layout, do you not end up with a templating language similar to PHP? Is this the right goal?
[ Parent
| on HN ]
Re:Things every React.js beginner should know
by matt4077 on Monday January 25, 2016 @10:52PM
(#10971732)
Yes – look for example at the .erb templates that rails uses. It's still possible to do evil stuff in those, but I actually haven't seen it in practice. The whole framework is organized in such a way that people get where their logic belongs.
The worst I've seen is a bit of confusion between models and controllers. But views are usually as clean as the Gods of MVC commanded.