Higher-order Components

In this lesson, we will go through the concept of higher order functions and higher order components. It's a manifestation of software engineering's reusability principle. Learning these concepts will make building re-usable react components easier and more fun.

In the previous lesson we finished our landing, now is a good time to refactor it. The Golden rule of refactoring - nothing should change for the end user, but at the end, we will get better and more maintainable code.

Function as first class citizen

Javascript is a language that considers procedures to be “first-class objects” and allows functions to be passed around just like any other value.

e.g. you can do things like this:

Get hands-on with 1200+ tech skills courses.