Nezir Zahirovic
Nezir Zahirovic

leontrolski - 33 line React

Thoughts on reading through the hacker news response.Reactyou pass in a function that takes state and returns a virtual DOM (just a tree of plain ol' js objects)it renders that virtual DOM as a real DOM in the browserif you change the state, it runs the function again, this returns a new virtual DOMit efficiently updates the real DOM so that it matches the new virtual DOMIt also does a load of other crap as well, but we're going to ignore that.In this post, I'm going to make the smallest React-like thing that can do the above. It's very mithril influenced.


leontrolski - 33 line React #javascriptba #javascript #nodejs #reactjs #angularjs #vuejs #meteorjs #typescript #jquery #emberjs #denojs #bosnia