Transpile your mithril jsx using babel's online transpiler

You can transpile your JSX based mithril component to mithril component online with help of babeljs.


Copy your JSX component over there.

Select React and ES2015 in preset for compilation.

You will be getting compiled code on the right side.

If you notice this compiled code is for React, and not for the mithril.
You have to go one step more, Replace all the React.createElement with m and you got the code for your mithril.

Repalce react.createElement with m



  1. Your article is very informative and has a lot of information. I really like your effort, keep posting.
    Moreover, if you are looking for professional logo design services, check this out.

  2. You have mentioned every aspects of the subject through this article, can you please write about "accounting for lawyers"?

  3. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read. Best photo editing services uk service provider


Post a Comment