Functions are not valid as a React child. This may happen if you return a Component instead of from render
You are using it as a regular component, but it’s actually a function that returns a component. Try doing something like this: const NewComponent = NewHOC(Movie) And you will use it like this: <NewComponent someProp=”someValue” /> Here is a running example: const NewHOC = (PassedComponent) => { return class extends React.Component { render() { return … Read more