Wednesday, 11 February 2026

React js Question and answers

 

What are React JS data transfer techniques

1.Prop drilling

       a. Parent to child

       b. Child to Parent(usecallback)

2. Global state sharing – Context API

3. state management lib redux

4. React Route URL (useParams)

Reactjs components lifecycle

1.Mounting

      a. constructor

      b.getderivedstatefromprop

      c.render

      d.componentsdidmount

2.Updating

     a.getderivedstatefromprop

     b.shouldcomponentupdate

      c.render

      d.getsnapshotbeforeupdate

      e.componentsdidupdate

 

3.Unmounting

     a.componentWillUnmount

 

How to post data using React js

Fetch

Axios

How to post data using Node js

Express js

Axios

i have to post 100 different request and get response at same time in react js

Promise All   Promise.allSettled

 

 


No comments:

Post a Comment