13 ms·
I was thinking to put React.js in my adopt circle, but I spent a couple of days setting up the Node.js gulp-vinyl-browserify-babelify nonsense, and it really is
by thirdreplicator 11y ago
I was thinking to put React.js in my adopt circle, but I spent a couple of days setting up the Node.js gulp-vinyl-browserify-babelify nonsense, and it really is a witch's brew of configuration hocus pocus. Its compelling to know that React is backed by Facebook, but React is simply verbose and comes with too much stuff packed into one package.
Whats the alternative? Thanks to hacker news i bookmarked vuejs.org and finally got a chance to come back to it. I made a couple of pages with vue.js, and I think there is a lot less stuff to do. There's no JSX. Your HTML peppered with vue.js directives is your templating language. There's no server side rendering, but that may be a good thing in the end. Fewer dependencies, less learning curve, less ecosystem to swallow in a single gulp. I hired a fresh grad from the Philippines, and he was able to pick it up and run with it immediately. I've only been using vuejs over Christmas, but I'm looking forward to seeing what else it can do. I'll post a small PHP-backed CRUD app if people are interested.
- onewaystreet 11y ago> gulp-vinyl-browserify-babelify nonsense Use Webpack. It replaces the need for all of these and does a much better job.
- Touche 11y agoAfter 300+ lines of config spread over 3 files.
- sergiotapia 11y ago"Replace this garbage with this other newer garbage."
- pavel_lishin 11y agoDoesn't that just glue them all together? We're using it at work, and we brought in an in-house React person, but I have no idea what the config does/signifies, and every time they change something, I absolutely don't understand why or how it works. (Our tests currently don't work. I mean, they can run - unless there's an error, in which case it exits early with a 0 status, without running any of the subsequent tests.) This is partially on me - I should read the shit out of the docs - but so far it seems like it just paints over the complexity a little.
- pavel_lishin 11y agoLate update: read through some of the webpack source code. As near as I can tell, it completely ignores most of the options passed to it via the CLI. (For example, --colors seems to have zero effect on anything.)
- qaq 11y agoIt all depends. React as of right now is the only viable option that has decent server side rendering for 80%+ of web apps it's a must for SEO, FB integration etc. Until Angular 2.0 ships and Ember get's fastboot completed there is no other major viable option.
- MatthewPhillips 11y agoDoneJS as well. It includes Web components, a browser module loader, and has the most complete server side rendering of any framework. https://www.google.com/url?sa=t&source=web&rct=j&url=http://m.youtube.com/watch%3Fv%3DwRYdrfrL6ZQ&ved=0ahUKEwjxlZbO2f3JAhXLz4MKHcqnANAQtwIIKTAE&usg=AFQjCNGXD0-nswdvPvkmT_K11mA9DaxlsQ&sig2=bTfekw4t10eCtHwJYmK7bw https://www.google.com/url?sa=t&source=web&rct=j&url=http://... http://donejs.com http://donejs.com
- qaq 11y agoby "major" I meant something that has recognizable market share.
- joshontheweb 11y agoIm don't know a lot about SEO but afaik Google crawls javascript pages. Do you still take an SEO hit in that case?
- deleted 11y ago[deleted]
- DCoder 11y agoReact can do strongly-typed views. I use Typescript, and I can build the DOM either in JSX or by nesting React.DOM.div() and friends, and the Typescript compiler will yell at me if I use an event handler/variable/etc. that does not exist in the code. Why would I go back to an opaque templating language after that?
- mbrock 11y agoWhat does all that stuff have to do with React? Isn't it just a bunch of general purpose JavaScript tools that you decided that you needed to use?
- thirdreplicator 11y agoYeah you're right. I conflated the two issues in my comment.