2016-01-31

Reading the various Blaze vs React threads here, it seems like one of the most common concerns preventing people from switching to React is the way it mixes HTML and JS in the same file. This is bad from a separation of concerns point of view (if you care about such things), but more practically speaking also makes it a bit more risky for non-programmers (i.e. front-end designers) to modify your component code.

A great solution to this is functional stateless components. But you're still adding a bit of JavaScript code in there for every component (specifically, the function declaration and return statement).

So I had this idea for a Meteor package to enable getting rid of this boilerplate, and making React components more compatible with designer/developer workflows. I'm not sure if it's a good idea or not, so I would love some feedback from both the React and Blaze crowd. Here's more details:

github.com

meteor-utilities/Stateless-Templates/blob/master/README.md

This file has been truncated. show original

Show more