scrimba
Challenge: Higher Order Components (HOCs)
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Challenge: Higher Order Components (HOCs)
AboutCommentsNotes
Challenge: Higher Order Components (HOCs)
Expand for more info
withFavoriteNumber.js
run
preview
console
import React from "react"
/**
* A function that takes a component as its first argument and returns a new component that wraps
* the given component, providing extra capabilities to it.
*/
export function withFavoriteNumber() {
return ???
}
Console
/index.html
-5:38