1import React from 'react';
2
3const HOC = (oldComponent, data) => {
4 return class extends React.Component{
5 render(){
6 return (
7 <>
8 Hello HOC <oldComponent/>
9 </>
10 )
11 }
12 }
13}
14
15export default HOC;