Re:Things every React.js beginner should know
by Raphmedia on Monday January 25, 2016 @11:16AM
(#10967971)
Here we use https://www.jsviews.com/ in a similar way by having the templates in .jshtml files and calling them from the .js ... I wouldn't want to put the html directly in my .js files either!
Re:Things every React.js beginner should know
by grumblestumble on Monday January 25, 2016 @06:51PM
(#10970941)
if there's a meaningful semantic difference between what you just posted and Angular's 1.5 component syntax, I'm missing it.
I mean it doesn't get any more straightforward than this.
<div id="app"> <p>{{ message }}</p> <input v-model="message"> </div>
new Vue({ el: '#app', data: { message: 'Hello Vue.js!' } })