Reconsiler
Reconsiler是在非常基础的级别上复制react的基本尝试,它加深了对底层DOM操作如何工作以及react如何管理更新状态的理解
/**
* -----------------------------------------------------
* Below code shows the usage of class and its functions
* below is the sampl case where state got updated after 3 sec
*/
let reconsile = new MakeState(state)
reconsile.init(howUserwantToAppendMyStateToHtml)
setTimeout(()=>{
reconsile.updateState(updatedState)
}, 3000)