Live data from Hacker News

Mithril.js – A modern client-side Javascript framework

mithril.js.org

1–10 of 83 posts

Re: Mithril.js – A modern client-side Javascript framework

#2
I've been using it for some time now, and the biggest plus for me, besides the very simple to understand API and the manual redraw feature, is the ease one can find setting it up for a project.

Even with webpack or some other complex bundle, someone without any formation can really quickly set it up and get to code without worrying much about the internals of webpack etc.

Re: Mithril.js – A modern client-side Javascript framework

#3
post #2

I've been using it for some time now, and the biggest plus for me, besides the very simple to understand API and the manual redraw feature, is the ease one can find setting it up for a project. Even with webpack or some other complex bundle, someone without any formation can really quickly set it up and get to code without worrying much about the internals of webpack etc.

Yes, exactly. Using JSX is also easy for development purposes if you don't like hyperscript syntax. Just add babel.min.js file and use

  
  
  /** @jsx m */
  // your can use jsx here
  
and bingo! You can use JSX. No need to use npm, webpack, etc.

Re: Mithril.js – A modern client-side Javascript framework

#9

Haven't used it in a while, but it definitely shaped my understanding about functional programming as it relates to javascript.

I had a similar experience. It made me understand how front-end javascript frameworks actually work (in general). The no-fluff approach taken by the framework meant that code was clear and descriptive docs helped (reminds me of Django's docs sometimes). I wish there were more tutorials though.

Re: Mithril.js – A modern client-side Javascript framework

#10
post #8

A lighter-weight and largely API-compatible replacement for React: Preact. https://preactjs.com/

Sure. If you still want to be React-like, that is! But React, Preact are still view libraries right? Mithril is a (reasonably) complete framework. It's sufficiently similar to React that if you know React, you can get productive in Mithril very fast. I guess mithril is for people who want a full framework with no fluff that gets out of the way.
Post reply on HN