Building Your Own Hooks in React Native | Custom Hook for API | Advanced React Native | Axios Hook

Опубликовано: 01 Январь 1970
на канале: JAS ACADAMY
1,242
28

Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.
Building your own Hooks lets you extract component logic into reusable functions
Custom React hooks are an essential tool that let you add special, unique functionality to your React applications.

In many cases, if you want to add a certain feature to your application, you can simply install a third-party library that is made to solve your problem. But if such a library or hook doesn't exist, what do you do?

As a React developer, it's important to learn the process of creating custom hooks to solve problems or add missing features within your own React projects.

In this step-by-step guide, I will show you how to create your own custom React hooks by breaking down three hooks I've made for my own applications, along with what problems they were created to solve

Custom Hooks are a mechanism to reuse stateful logic (such as setting up a subscription and remembering the current value), but every time you use a custom Hook, all state and effects inside of it are fully isolated.

#jasacadamy #reactnativecourse #reactnativetutorial #react #reactnative
#reactjs #reactjsdeveloper #reactjscourse #reactjsforbeginners #reactjsproject

react hooks,react,react hooks tutorial,reactjs,react tutorial,lesson,tutorial,app development,webdev,custom hook,custom hooks,react custom hook,react custom hooks,reactjs custom hooks,custom hooks tutorial,react custom hooks js,custom hooks react js,react js custom hooks,react hook,learn react custom hooks,react hooks,hook,react custom hooks function,hooks,custom hooks in react,fetch hook,react js custom hooks tutorial,learn custom hooks in 8 minutes,usefetch,learn react hooks,reactjs hooks,react hooks project,useinput custom hook in react,learn react js,react js,learn reactjs,reactjs,react hooks,react hooks explained,react hooks tutorial,reactjs beginner,reactjs tutorial,react js crash course,node js,react tutorial,tech with tim,react tutorial for beginners,computer science,usecallback,traversy media,useref tutorial,uselayouteffect,usememo tutorial,javascript,typescript,programming,freecodecamp,traversymedia,usestate tutorial,clever programmer,useimperativehandle,deved,pedrotech,
react usestate,react state,reactjs usestate,reactjs use state,react usestate js,react js usestate,react usestate hook,react js state,learn react usestate,react js usestate tutorial,react tutorial,usestate,js use state,react js tutorial,react beginner,react hooks,react hooks project,react hooks tutorial,usestate hook,learn react js,learn usestate in 15 minutes,learn react hooks,usestate tutorial,use state react js,usestate react

1:00 Introduction
01:27 Running react native project on device
05:26 Api call using axios in react native
07:02 Setting Base url on axios
10:31 Api call inside useEffect on react native
14:24 Flatlist in react native
19:51 Custom hook in react native