News for hackers. Stuff that matters.
Re:Vue.js 3 by lhnz on Friday September 18, 2020 @04:07PM (#24521341)
In this case, you could use `htm`: https://github.com/developit/htm#usage
Re:Vue.js 3 by jonquest on Saturday September 19, 2020 @08:03AM (#24526858)
That's cool- but unless you're targeting greenfield browsers only you aren't going to use the syntax in that documentation without a build step or using the babel transpiler directly in the browser which, while cool from a POC standpoint, isn't a good solution. At that point you might as well just add build tools and use JSX or whatever the framework you're trying to use intended or otherwise is well documented.
Re:Vue.js 3 by pier25 on Friday September 18, 2020 @04:13PM (#24521405)
Yeah totally. Or even use Preact by the same author which is smaller and faster than React.