Back to Browse

Part 51 React Tutorial | React Hooks | Custom React hooks | Custom hook to load data from API

50 views
Mar 31, 2023
7:11

Custom hooks:- ------------ - Hooks are reusable functions. - Writing our hooks are called custom hooks. - If any component logic is common in multiple places, then we can write the custom hooks. - Custom Hooks start with "use". Example: useApi. - Custom hooks follow a naming convention of use followed by a descriptive name, such as useLocalStorage or useFetch. They use built-in React hooks and/or other custom hooks to encapsulate reusable logic, and can return any values that are needed by the components that use them

Download

1 formats

Video Formats

360pmp411.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Part 51 React Tutorial | React Hooks | Custom React hooks | Custom hook to load data from API | NatokHD