1.0.0 • Published 9 months ago

01-reconciler v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Reconsiler

Reconsiler is basic attemp to replicate react at the very basic level, It deepens the understanding of how DOM manipulation uner the hood works and how react manages to update the states

/**
 * -----------------------------------------------------
 * 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)