Posts

Showing posts from December, 2019

Reat State| Maintaining State in React js | Adding New Records in Json Object

Hello & As- salam  u  alikum  ! This is the 3rd article related to React js , In this blog we will discuss about the State in React js which is the backbone of react applications, Lets do it! In the previous article, we had discuss about the functional and class components, now we will use a class component to display records from current state and we will add new records in the json object or state of the component. Below is the complete code for your application, I explain all these line of code  partially. import   React , {  Component  }  from   "react" ; class   App   extends   React . Component  {    constructor () {      super ();      this . state  = {        data:  [         {          ...

React Components | What is Component in React Js | Importance of Components in Application

Image
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...