React Interview Questions - What are Higher-Order Components

preview_player
Показать описание
#react #higerordercomponents #HOC

Hey Guys, welcome to my series where we will learn about commonly asked Interview Questions.

Let's learn what are Higher-Order Components in React. Higher-order components or HOCs are used to reuse code or component logic. For example, an API Call.

And if you enjoyed this piece, please show some love with a like, comment, or just click on the subscribe button. Every bit matters :)

Feel free to ask if you have any questions.

Рекомендации по теме
Комментарии
Автор

In this case, could you use a custom hook instead? What is benefit of one over other. I've done some reading and it seems some would prefer using custom hooks over HOC.

jritzeku