News for hackers. Stuff that matters.
Re:Things every React.js beginner should know by Ronsenshi on Monday January 25, 2016 @08:23AM (#10967000)
Yes we do. I've been in a very similar position as you are - I was complaining against putting HTML in JS, however I've changed my opinion after actually started using React professionally.

From the side it might look like a bad practice, but I promise - this "HTML" in JS leads to fantastic testability. And I certainly prefer to work this way instead of filling HTML with numerous of "ng-" attributes where you're trying to force app generate code that you want.

Sidenote: even though it looks like HTML, it is not exactly HTML.

There are no comments on this comment yet.