No video

REACT HOOKS Interview Questions 🔥

  Рет қаралды 48,152

Nisha Singla

Nisha Singla

Күн бұрын

Пікірлер: 19
@aviad57
@aviad57 5 ай бұрын
Q: What are React hooks? A: React hooks are functions that allow functional components to utilize state and other React features. Q: What are the rules for applying hooks? A: Rules include using hooks at the top level and avoiding placement inside loops or conditions. Q: Which hook is used to implement lifecycle methods? A: The useEffect hook replaces lifecycle methods for side effects in functional components. Q: What is the syntax of the useState hook? A: The syntax is const [state, setState] = useState(initialState);. Q: Compare useReducer and useContext. A: useReducer manages complex state logic, while useContext is for sharing values like themes. Q: How are hooks used for optimization? A: Hooks like useMemo and useCallback optimize performance in React applications. Q: What are custom hooks, and when do we use them? A: Custom hooks are functions using hooks, created to reuse stateful logic across components. Q: How can shared state be achieved between components using hooks? A: Shared state between components is achieved by using the same custom hook. Q: How do you use useEffect to call a loading function just once? A: Pass an empty dependency array: useEffect(() => { /* loading logic */ }, []);. Q: Compare useState and useRef. A: useState manages state, while useRef is for accessing and interacting with a mutable object without causing a re-render.
@mohimakhatun
@mohimakhatun 5 ай бұрын
Thanku
@akshaybachkar3675
@akshaybachkar3675 5 ай бұрын
thnx
@kunalblg
@kunalblg Жыл бұрын
Kindly share the answer also please. And if possible, kindly make video on React Forms and Authentication & Authorization in React. Like to learn from your video. Thanks.
@adityaa2303
@adityaa2303 10 ай бұрын
what are react hooks. rules to apply hooks. hook used to implement life cycle method. syntax of usestate hook. usereducer vs usecontext. hooks use for optimisation. what are custom hooks and when we use them. shared state between component utilizing the same hook. how to use useeffect to call the loading func just once. usestate vs useref.
@gobicorner
@gobicorner 5 ай бұрын
thank you so bro
@beingMeditative56
@beingMeditative56 11 ай бұрын
Very informative, Thanks
@smartgowthamrazer
@smartgowthamrazer 7 ай бұрын
Thanks yaar very useful videos!!!
@Shivamashish5236
@Shivamashish5236 11 ай бұрын
Goodone Nisha plz.. make more videos on react interview
@pulkitshukla9944
@pulkitshukla9944 Жыл бұрын
Hi Nisha, I'm familiar with most of the answers to these questions. Now I'm in a dilemma whether I'm well prepared for the Interview or are these questions just basic/ easy?
@diwakardayal954
@diwakardayal954 10 ай бұрын
nice thanks
@argkmr
@argkmr 9 ай бұрын
Inka ans bhi bata dete toh acha rehta 🙂
@shreyashjain1475
@shreyashjain1475 7 ай бұрын
😂😂😂😂😂😂😂😂😂
@PrinceYadav-gl1pg
@PrinceYadav-gl1pg 7 ай бұрын
Try to add answers too...maybe in comments or description
@aviad57
@aviad57 5 ай бұрын
Q: What are React hooks? A: React hooks are functions that allow functional components to utilize state and other React features. Q: What are the rules for applying hooks? A: Rules include using hooks at the top level and avoiding placement inside loops or conditions. Q: Which hook is used to implement lifecycle methods? A: The useEffect hook replaces lifecycle methods for side effects in functional components. Q: What is the syntax of the useState hook? A: The syntax is const [state, setState] = useState(initialState);. Q: Compare useReducer and useContext. A: useReducer manages complex state logic, while useContext is for sharing values like themes. Q: How are hooks used for optimization? A: Hooks like useMemo and useCallback optimize performance in React applications. Q: What are custom hooks, and when do we use them? A: Custom hooks are functions using hooks, created to reuse stateful logic across components. Q: How can shared state be achieved between components using hooks? A: Shared state between components is achieved by using the same custom hook. Q: How do you use useEffect to call a loading function just once? A: Pass an empty dependency array: useEffect(() => { /* loading logic */ }, []);. Q: Compare useState and useRef. A: useState manages state, while useRef is for accessing and interacting with a mutable object without causing a re-render.
@PrinceYadav-gl1pg
@PrinceYadav-gl1pg 4 ай бұрын
@@aviad57 Thankeew you man.
@SaaralMazhai
@SaaralMazhai 6 ай бұрын
Are u married?
@softmedun6794
@softmedun6794 Ай бұрын
Babu koi or kam kr lo tumse na ho payega m samjh gya 😅 kyunki tum larki ho , or vaise v tum log ka dimag pair ke niche hota iaslie , ghar me khana banana sikh lo sasural me kam kam aayega 😂
@pulkitshukla9944
@pulkitshukla9944 Жыл бұрын
Hi Nisha, I'm familiar with most of the answers to these questions. Now I'm in a dilemma whether I'm well prepared for the Interview or are these questions just basic/ easy?
6 React Interview Questions You Have to Know
13:10
PedroTech
Рет қаралды 117 М.
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 2 МЛН
REAL React Interview Questions
8:08
Peter Elbaum
Рет қаралды 188 М.
React Junior Developer Interview (Questions & Challenge)
1:06:19
Cosden Solutions
Рет қаралды 124 М.
React Coding Interview Questions | React JS Interview | React JS machine coding round
12:38
Questions to ask at the End of an Interview
7:19
Life Work Balance
Рет қаралды 2,1 МЛН
JavaScript Interview Questions 🔥@NishaSingla
0:56
Nisha Singla
Рет қаралды 65 М.
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45