Imagine your favourite celebrity posting a photograph on Facebook. Now you go and like the photo and then you hag there for a while just glare that photo You know what I mean 🤫 then you see that likes count increased by count 100 since you liked the picture. There was no reload/refresh of the page, just somehow magically the count changed. This magic my friend is react.js.
So to explain it better, imagine your web page. Again I will take example of Facebook since everybody uses it and common they created react.js so billions of posts, so much traffic, millions like count. How do they manage all that a blazing speed. To do that they come up a library called react.js.
Imagine a post on Facebook. Now this post which is a container consists of multiple small parts like likes, comments, share, comment box called components. Every page can be broken down into different components. Now you must be wondering why do we do this, we already have awesome frameworks on front end? Well if you dont you are certainly going to be amused now.
1. Single Page Application.
2. Entire page remains same but only few components change.
3. Code is easy to scale and maintain.
4. More functionalities as HTML is created from JS
5. Isomorphic Rendering (Server side rendering)
6. Blazing speed
Enjoy your day 🤡 !!!