Abhishek-VG / oroz-aonoror

MIT License
2 stars 0 forks source link

React Questions #24

Open Abhishek-VG opened 2 years ago

Abhishek-VG commented 2 years ago
  1. Difference between element vs component in react

  2. How to create element

  3. Down concept

  4. Browse routing & red routing

  5. Push & replacement / History method

  6. What is redux, hooks & why its used

  7. What is Jsx

  8. Effect of hooks

  9. Filter & map concept

  10. Lifecycle of react

  11. Control as uncontrol components

  12. What is problem drilling

  13. Use context - concept

  14. Reducers - dispatch method , type & payload

  15. Is null a good activity or not & why

  16. What is hoisting

  17. Difference between set interval and set timer

  18. How to catch Array

  19. Higher order function vs higher order components

20.what if api fails in between

  1. How does components unmounts work

  2. Diff between Real dom & virtual dom

  3. What is camel casing in JSx

  4. Explain Higher order components

  5. Main purpose of react.

  6. Reason to write camel case in Jsx

  7. What is pure components

  8. Coding : write a reducer... In the reducer there should be a name.. Set user details ..the action should return user name and user Age.

  9. Parameters of dispatch method

  10. What is combined reducer.

Abhishek-VG commented 2 years ago
  1. https://codesandbox.io/s/new-moon-gzezbp?file=/src/Parent.js:132-161
Abhishek-VG commented 2 years ago
  1. location https://developer.mozilla.org/en-US/docs/Web/API/Location history.go(0) reloads the page.

history.go(-1) is the same as history.back().

history.go(1) is the same as history.forward().

https://www.w3schools.com/jsref/met_his_go.asp

Abhishek-VG commented 2 years ago
  1. function DisplayName = (name) => Hi {props.name} no lifecycle required for this no state required for this for thes ekinf of components we used functional components before

for any component which invlived state, we used class components before

everything changed in react 16.+ version hooks were intriduced now even funcational components can have state and lifecycle