Hello Viewer! how are you? I hope you are very well. Today I have learned about React. below I have written what I learn today...
REACT
1) REACT is a JavaScript library for building awesome User Interfaces.2) React is all about components. (breaking everything into small-small parts and then using )
How does React Work?
React created a Virtual DOM in a memory. and if any changes happens then that Updated virtual DOM compare with Real DOM and checks then changes if any changes then it render that Updated DOM in Real DOM and again Virtual DOM is created for Real DOM and so on.
fig (1) |
Instead of manipulating "Browser's DOM/ Real DOM" directly, react created a virtual DOM in memory, where it does all the necessary manipulating, before making changes in the "Browser's DOM/ Real DOM".
Reacts Only changes whats need to be changed!
Reacts finds out what what changes have been made, and changes only what need to be changed.
2010- The first sign of React
Facebook Introduce xhp into its PHP stack and open sourced it! (xhp allows composite components)
2011 - An Early Prototype of React
Jordan Walke created "FaxJS", the early prototype of react, he was influenced by xhp, an HTML component library for PHP. It was first deployed on Facebook's NewsFeed
2012- Something new has started on facebook
Facebook ads becomes hard to manage, so facebook needed to comeup with good solution for it. Jordan Walke worked on prototype and created React. and then it deployed on Instagram (acquired by facebook in 2012)
2013 - The year of the Big Launch
Jordan walke introduced React. React gets Open Sourced!
That's All I have learned today! maybe this post has an error or something is missing I am just writing this as notes of my learning lesson so please before using it anywhere verify once. for more read this 👉 --- About us.
Request 🙏: - If You found any error then DO NOT FORGET TO PING ME IN COMMENT or MAIL ME From contact us page.
Thank You 4 Reading!💗💗