5 ms·
I second this; Go + React.js (Vue.js in my case) I talked about it just a couple of hours ago [1]. [1] https://news.ycombinator.com/item?id=17215658 https://n
by guessmyname 8y ago
I second this; Go + React.js (Vue.js in my case)
I talked about it just a couple of hours ago [1].
[1] https://news.ycombinator.com/item?id=17215658 https://news.ycombinator.com/item?id=17215658
- marcus_holmes 8y agoThat's interesting... I think I'll spend a couple of days playing with Vue to see if I can get rid of Webpack and Babel, because they're an enormous pain to set up (especially as they keep changing their config schema every major version release - I think I've climbed Webpack's config learning cliff three times now).
- oreganoz 8y agoReact doesn't need webpack or babel. People just see lots of benefit in using them, but there are tutorials out there on how to use just React. It can be as simple as a script tag at the bottom of your html and then writing ES5 React.
- mmusc 8y agoVue apps depends on webpack as well. But the vue-cli makes the whole set up a breeze. Especially v3 (currently in beta) If the website you're building is simple you could even have vanilla html pages then attach vue to the divs that need that extra interactivity, then you won't any fancy loaders.
- mamcx 8y agoI try dozen of tools for a cross-platform app and finally settle on use vue. Every time I use node and look at his insanity and get depressed. So, I dislike STRONGLY the use of Webpack and friends. Is a chore because JS is even more nuts now, and everything assume you want node nonsense everywhere. So, I persist and do this: I introduce: > Non non-sense javascript front-end setup with vue https://gist.github.com/mamcx/1d3aa692b0d34b0fae696c12292a1a6c https://gist.github.com/mamcx/1d3aa692b0d34b0fae696c12292a1a... Using local .js/.css files downloaded from a cdn, then using cat to concat in the correct order all the deps, and finally let to build your css/js as you please for your logic. Build time is zero after the first try. P.D: Maybe using unix pipes I could minimify and stuff like that, but I don't need that.
- wishinghand 8y agoIf you just have a Vue file script tag in your document, you're good to go. If you want single file components, hot module reloading, Babel features, etc, you'll need Webpack. Luckily, the current and beta versions of the vue-cli make these non-existant problems. Just install using the cli and it's good to go, no setup needed.
- friedman23 8y agoHow do you handle server side rendering? This is one of the reasons I chose to go full Node+React.
- lowry 8y agoVue also has server side rendering.
- gefaber 8y agoCheck out gatsbyjs.org for server side react rendering.
- slow_donkey 8y agoLook up express-vue
- jaequery 8y agonuxt.js is an all in one vue framework that has ssr and a really cool file based routing functionality