const UpdatedComponent = (OriginalComponent) => {
class NewComponent extends React.Component {
constructor(){
this.state = {
...
}
}
render(){
return(
<OriginalComponent props/>
);
}
}
return NewComponent;
};
class OGComponent extends React.Component{
...
//available via (this.props..)
}
export default UpdatedComponent(OGComponent);
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)