Why is the state overwritten by the attributes in the latest instance for all instances of a component when using IIFEs with Mithril.js?

前端 未结 0 748
自闭症患者
自闭症患者 2020-12-21 23:15

I\'m trying out Mithril.js and have made three small components.

let Map = (function() {
    
  let Map = {};
  let parent;
  
  Map.oninit = function(vnode)          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题