React Components | What is Component in React Js | Importance of Components in Application
Hello & As- salam u alikum ! This is the second article related to React js , In this blog we will discuss the introduction and importance of Components. The Programmers used to write a lot of code in earlier days to create application ,In which many of the code was much repetitive ,assume that there is one functionality which is present on page-1 ,page-2 ,page-3 & pages-4 ,we use to copy and paste the code on each page, when ever any change was required,we need to change the code on every page or view, That was very difficult task for developer for manage such code. React js came to resolve this problem with component base class code. In which we do not have to write the code again and again ,we just make a single unit of generic code once then we use the same component every where on application. Types of Components: React js have two types of components Functional Class In ReactJS, we have mainly...