Table of Contents
This article is all about ReactJS. Let’s start the right way with a very important question i.e. What is ReactJS? Why would we need it and what is so awesome about it?
What is ReactJS?
And what can we use it for? What’s the special thing if offers us?
Well! let’s think from a different direction- How does a web page look like? It probably looks like something having a lot of components on it and components are something you all will be looking for.
The reason for it is that the web pages can be split up into components – like you might have a header, sidebar, menu area and then the main area, you might have several lists for various list items and so on.
What is the difference between ReactJS and Angular2?
Do they do the same thing and its only up to some let’s say questions or whatever you say or you like more to, to decide what to pick?
Well! there are differences and as I mentioned ReactJS is a library for building user interfaces we use.
The difference is Angular2 out of the box has a router supports phone validation and so on. Angular 2 is there to control the complete user experience to control the complete user experience to control the navigation between pages, to control everything the user does.
So with Angular2, you built a single page application. Your server only senses one view and then onwards you takes over and handles everything.
ReactJS, on the other hand, can be extended to built single page applications and there is certainly nothing wrong with that. In that case, it has a lot of similarities with Angular2. But you need to import some extra packages it is not all built into core ReactJS. Because core ReactJS is about building the views or parts of views single components for which we can then done onto views.
So ReactJS could be used in let’s say layer able applications that have a lot of layer-able content on and layer-able as you are aware of that in which you get multiple views for most applications at least. And you could still have multiple views and views used ReactJS on all these views causing one view you need that widget.
let’s say a tab widget and then the other view you need another widget or another component.
So then you would not have a single page application but you would still use ReactJS and Angular2, on the other hand, would be kind of difficult using such a setup because that really is not needed for. so it is so important to understand what is ReactJS can and cannot do and what are the differences to let’s say single page frameworks like Angular2.
Visit – Hostripples