mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 22:01:49 +00:00
13 lines
251 B
TypeScript
13 lines
251 B
TypeScript
import React from "react";
|
|
|
|
function getWrappedComponent(SomeComponent: React.ElementType) {
|
|
class WrappedC extends React.Component {
|
|
render() {
|
|
return <SomeComponent />;
|
|
}
|
|
}
|
|
return WrappedC;
|
|
}
|
|
|
|
export default getWrappedComponent;
|