| 2 | |
| 3 | var 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 | |
| 18 | export default enhanceComponent; |
nothing calls this directly
no outgoing calls
no test coverage detected