DEV Community

Discussion on: HOCs vs Hooks. What to use and why?

uuykay profile image
William Kuang

"A HOC is a component that takes one or more components as props and returns new components."

This is not correct, a HOC is a function that takes a component, and returns a new component.