Higher Order Components in Reactjs #18 React Course

Published: 14 February 2023
on channel: Code with Sloba
22,367
622

A higher-order component in Reactjs is a function that takes a component and returns a new component with additional props. It's a technique that allows you to reuse logic across multiple components.

A higher-order component can be adjusted to fit the needs of different components, also it can be reused to enhance multiple components with the same logic.

HOCs are particularly useful when you want to share logic between components that are similar but not identical.
They are also commonly used for implementing features like authentication, error handling, and data loading.


************************************************************
Previous Video:    • Reactjs Profiler API #17 React Course  
Next video:    • Code Splitting in Reactjs #19 React Course  
Full series    • Full React Course  

************************************************************

0:00 Intro
1:22 Creating higher-order component
2:43 Creating dummy component to test HOC
3:38 Using HOC
4:28 Outro

🧿 I discussed:

✔️ What is a higher-order component in Reactjs
✔️ How to use higher-order components with Reactjs
✔️ When we should use higher-order components in Reactjs

************************************************************
👉 Linkedin:
✔️   / slobodan-gajic  

👉 Instagram:
✔️  / codewithsloba  


On this page of the site you can watch the video online Higher Order Components in Reactjs #18 React Course with a duration of hours minute second in good quality, which was uploaded by the user Code with Sloba 14 February 2023, share the link with friends and acquaintances, this video has already been watched 22,367 times on youtube and it was liked by 622 viewers. Enjoy your viewing!