Why include XHR in a view framework?
Mithril.js – A modern client-side Javascript framework
41–50 of 83 posts
Re: Mithril.js – A modern client-side Javascript framework
#42Anyway that’s enough. Cheers to mithril and it’s great devs, if you like mithril check out bss and Wright from porsager and meiosis from Foxdonut.
Re: Mithril.js – A modern client-side Javascript framework
#43Earlier quoted context omitted.
Mithil maintainer here. Guilty as charged. That page hasn't been updated since the v1.0 release, we've been focusing on code improvements. V2 is around the corner (mostly bug fixes, some of which required subtle breaking changes (i.e. things that most users won't run into but it would not have been honest to make it a minor semver bump). We'll revisit the home page before the release.
Do you accept PRs for website and documentation? Thanks!
Re: Mithril.js – A modern client-side Javascript framework
#44Why include XHR in a view framework?
Re: Mithril.js – A modern client-side Javascript framework
#45When working with libs that use HTML templates such as Vue, it's still possible for designers to be integrated in the development process. But with HyperScript, JSX, or Mithril, anyone contributing to the codebase has to know JavaScript.
Re: Mithril.js – A modern client-side Javascript framework
#46Re: Mithril.js – A modern client-side Javascript framework
#47This follows Reacts style of 'functions instead of templates'. I don't think it's a good idea. I think React will be the Java of our time. It caters to engineers who want everything to be well defined and typed. And to large corporations which don't care about heavy build processes. Looking at what happened to Java: It's still used a lot. But not by new and exciting companies or indie developers. I think we will see…
Re: Mithril.js – A modern client-side Javascript framework
#48Last I checked, Mithril hyperscript couldn't handle SVG, which is a non-starter for dataviz work. Anyone know if that's still the case?
Re: Mithril.js – A modern client-side Javascript framework
#49Earlier quoted context omitted.
Setting up Webpack manually is a pain, but honestly if one uses create-react-app, everything is done for you and you just start coding your app: you have transpiling of ES6 (at least, I don't know about ES7), you can install and include other packages, etc. etc.
True. If you're creating an app that will be used in production then of course you need to use npm, webpack and other tools. But if you're new to a framework and just want to experiment then being able to create an html file with a couple of script tags and writing code removes many barriers to entry. React, Vue and many others already offer this, I thought it was worth mentioning that Mithril does this too.
npx create-react-app MyApp
There is nothing to install, and you have a complete playground to experiment.
Re: Mithril.js – A modern client-side Javascript framework
#50I love Mithril. I would encourage every React/Vue developer to try it for a small project. Not to convince them to switch (I use all 3), but because I think using tools designed by smart people with a minimal mindset is valuable. Also I really like the hyperscript approach. It just fits my brain. Last I checked, Mithril hyperscript couldn't handle SVG, which is a non-starter for dataviz work. Anyone know if that's st…
SVG works fine with Mithril now, and has for a while. Here's a quick sample: https://flems.io/#0=N4IgZglgNgpgziAXAbVAOwIYFsZJAOgAsAXLKEAG...