diff --git a/src/withEventListener.tsx b/src/withEventListener.tsx new file mode 100644 index 0000000..102cb45 --- /dev/null +++ b/src/withEventListener.tsx @@ -0,0 +1,7 @@ +import React from 'react'; + +export const withSuspense = (eventName: string | string[]) => { + return (WrappedComponent: React.ComponentType) => (props: T) => ( + + ); +};