Become a member
Sign in
Dan Itsara
Dan Itsara

Dan Itsara

97 Following
94 Followers
  • Profile
  • Highlights

Highlighted by Dan Itsara

See more

From Mithril vs. Angular vs. React by Grant M

I prefer that a Mithril component is just an object with a view property and an optional controller property (in React you extend a class). I like the way arguments are passed as options to components in Mithril and how those are passed as arguments to the view and controller. I also like how you can supply a “config” function on a virtual DOM node, and it will be called with the actual DOM element. In React I believe you would make a reference and use ReactDOM.findDOMNode.