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