MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / Enhance

Class Enhance

code/higher-order-components/src/enhanceComponent.jsx:4–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3var enhanceComponent = (Component) =>
4 class Enhance extends React.Component {
5 render() {
6 return (
7 <section>
8 <h1>I'm high-order component</h1>
9 <Component
10 {...this.state}
11 {...this.props}
12 />
13 </section>
14 );
15 }
16 };
17
18export default enhanceComponent;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected