You can transpile your JSX based mithril component to mithril component online with help of babeljs.
Goto https://babeljs.io/repl
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.
Cheers!
Goto https://babeljs.io/repl
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.
Cheers!
Great article. Thanks for sharing.
ReplyDeleteBuy Custom Website
Great Post! You definitely gave your insights.
ReplyDeleteBuy property online india
Your article is very informative and has a lot of information. I really like your effort, keep posting.
ReplyDeleteMoreover, if you are looking for professional logo design services, check this out.
Buy
You have mentioned every aspects of the subject through this article, can you please write about "accounting for lawyers"?
ReplyDeleteIt’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
ReplyDelete