score:5

Accepted answer
import { withMyHOC } from '../with_my_component'
export default class App extends React.Component {
   render() {
      const Wrap = withMyHOC(MyComponent);
      return (
        <div>
            {/* Other Code */}
            <Wrap />
        </div>
      )
   }
}

score:1

const Component = withFoo(({ foo }) => <div>{ foo }</div>)

Related Query

More Query from same tag