Why react & what it makes unique.
Most of all of us thinking that React js is a library or a Framework? Let me clear first React js is a library, not a framework. It is an open-source library it gives a developer the ability to work with a virtual browser and I think that is really friendly than the real browsers. Virtual browsers act like an agent between the developer and the real browser.
React js has gained lots of attraction during the last years because of its purely functional views and ultimate representative in front end world.
Team collaboration is hell better because of React js. All this modular system that is enforced, helps developers to split tasks easier and overlaps and side effects.
It gives you freedom
Components allow developers to break down the complex UI
React js is exceptional when it comes to speed
It a common thing in react to create a library of custom components to reuse globally in your project and get development and debugging much faster.
React js only responsible for view portion, Other than that you are on your own way to discover what you wanna use for subscribing and doing HTTP requests.
You might wanna use either Redux or flux for data store and management.
Switching Angular to React
It’s because of hype?
I am a developer and I worked on Angular and working with React js If you ask mi Angular is much more restrictive, it seems to have “the” way of doing most things.
React gives developers freedom of choice and enables them to find technologies to express themselves when problem-solving. It is easier to integrate a new feature in the library than a framework. It is easier to integrate components easily. Obviously compile time is faster than other frameworks.
Is it too hard to switch?
We can see the difference in the ways we are updating the DOM visually If we inspect the DOM nodes in the chrome dev tools element panel. It highlights the HTML that gets updated
you will see how we are regenerating the whole “js” div on every tick, while react is smartly only regenerating the paragraph with the timestamps string
why it works better
React has a large community, they are having meetups all around the world.