Posts

Showing posts from May, 2015

React - Virtual DOM

Image
//English Hi guys, today I'm going to talk about ReactJS, the facebook's framework for Front End Development. <!-- Virtual DOM --> Basically React works with something called: "Virtual DOM", what exactly is it? Well, React try to answer the questions: When should I re-render? What should I re-render? If you have worked with angular, you know that angular works with a queue, and when you need to update or interact with the DOM, let's say something like this: <div> <input ng-model= "myModel" /> </div> Angular will update your model each time this model change! I mean, imagine you press the letter 's' 3353453345534 times, angular will fetch those actions and it will add those changes to the queue in order to update the model, this would be easy for angular to interact with the DOM, I mean you are typing in a normal input field, but what happened if you have something like this: <div>