Hello everyone my name is Mukhamed Talaspaev .today I gonna tell you about React js.first time when I heard about “React JS.. I was a Jon Snow .And my mentor said me “you know nothing ,Joh Snow”.I used my Varg’s abilities for searching.and I found that with google.
React was created by Jordan Walke 6 year ago .he’s software engineer at Facebook .
Another notable feature is the use of a "virtual Document Object Model", or "virtual DOM". React creates an in-memory data-structure cache, computes the resulting differences, and then updates the browser's displayed DOM efficiently.
React can also be rendered on the server side, and they can work with client side
Let’s compare React and Angular.
Angular is represented in the picture as reighar and react as Robert in the battle of the Trident
• modules controllers
• and so on
Just now you have a question what is the component, this is the main building block of any react project
It is independent part of page.it contains some logic and how it should look,you can use component multiple times
consider an example of a Facebook page
you can immediately notice the components that make up this page. it's the first component. it's the second.
Here is an example of a simple React component. as a result, we get it. of course, it is much easier than on this page, but the essence of the work is one
ADVANTAGE of react is
we get predictable code from Declarative code,
Easy to mix HTML and JS
Uses full power of JS
DISADVANTAGE of react is Very little info in the docs