Custom hooks | React Hooks Tutorial #10

Veröffentlicht am: 12 April 2021
auf dem Kanal: Philip Fabianek
792
31

In this episode of my React Hooks Tutorial, we will learn how we can create custom React hooks. Custom hooks allow us to extract logic into reusable functions. Meaningful custom hooks can make your application very powerful. Custom hooks allow us to share logic that wasn't possible in React components and they really allow us to use our imagination. I will demonstrate this by creating a custom useLocalStorageValue hook.

Starting repository:

https://github.com/philipfabianek/rea...

Ending repository:

https://github.com/philipfabianek/rea...

Timestamps:

►0:00 Introduction
►0:12 Purpose of custom React hooks
►0:44 Creating the useLocalStorageValue hook
►3:19 Refactoring the useLocalStorageValue hook
►5:11 Testing the new custom hook
►5:25 Ending

Social Media:

►Twitter:   / philip_fabianek  
►LinkedIn:   / philip-fabianek  
►Website: http://www.philipfabianek.com
►GitHub: https://github.com/philipfabianek


Auf dieser Seite können Sie das Online-Video Custom hooks | React Hooks Tutorial #10 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Philip Fabianek 12 April 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 792 Mal angesehen und es wurde von 31 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!