mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Add getWrappedComponent util and consume in tests
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import React from "react";
|
||||
|
||||
function getWrappedComponent(SomeComponent: React.ElementType) {
|
||||
class WrappedC extends React.Component {
|
||||
render() {
|
||||
return <SomeComponent />;
|
||||
}
|
||||
}
|
||||
return WrappedC;
|
||||
}
|
||||
|
||||
export default getWrappedComponent;
|
||||
Reference in New Issue
Block a user