opendevs
React.memo, useMemo and useCallback

Custom hooks in React

Loading video...

useWindowSize hook | Custom Hooks in React (in Hindi)

Concepts

    1

    useWindowSize hook | Custom Hooks in React (in Hindi)
    useWindowSize hook | Custom Hooks in React (in Hindi)

    2

    useInitialFetch hook | Custom Hooks in React (in Hindi)
    useInitialFetch hook | Custom Hooks in React (in Hindi)
Hooks are reusable functions. When you have component logic that needs to be used by multiple components, we can extract that logic to a custom hook.Finish watching the concept videos to earn    DevCoin image  each
1

What are hooks in React?


Question 1 of 7
2

Which concepts are exhibited by custom hooks in React?


Question 1 of 7
3

Can custom hooks internally use React's useEffect and useState hook?


Question 1 of 7
4

States in two different invocations of a custom hook are totally isolated from each other.


Question 1 of 7
5

It is highly recommended to prefix your custom hook's name with use keyword.


Question 1 of 7
6

Is it necessary to use useState, useEffect, or other React hooks to create custom hooks?


Question 1 of 7
7

Can custom hook be used outside React's component tree?


Question 1 of 7
Practice Problems
StatusTitleDifficultyDevCoin image

medium

Copyright © 2022 opendevs

Learn ● Develop ● Ace
All illustrations by Storyset