Knowledge Builders

Cover image
Author image

Jewel Vaughn

Mar 20 (4 Days ago)
15 min read

How to get your first job as a self-taught programmer

#beginners #programming
Cover image
Author image

Jannie Russell

Mar 14 (10 Days ago)
12 min read

How to get your first job as a self-taught programmer

#beginners #programming
Cover image
Author image

Wendy Hinton

Mar 18 (6 Days ago)
5 min read

How to get your first job as a self-taught programmer

#beginners #programming
Cover image
Author image

Ortega Hernandez

Mar 22 (2 Days ago)
10 min read

How to get your first job as a self-taught programmer

#beginners #programming

Spent time on read: 0 min

Bookmarked Blogs: 0

1. What is the difference between props and state?

state can be changed, depending on click handler but props are read-only. It cannot be changed. Props used for passing data.

2. How useState works?

useState is react Hook that allows stateful logic. It has tow argument first argument will be the default value of useState and second argument is use for update the first argument.

3. What can do useEffect except data load?

useEffect can do many things except load data. We can use ueEffect for Set up any event listener, to update any document title, to manage timer.

4. How useState works?

React work on the browser using virtual DOM. When we render any component React create a virtual DOM for that component and set a key for that specific component then when we change any thing then react find out that part of the virtual DOM where the exact change by using its diff algorithm. Then it change that particular DOM of real DOM.