function asyncAction(dispatchFn) { return function(Component) { class AsyncAction extends React.Component { static displayName = `Action(${Component.displayName})` fetchData() { return dispatchFn(props, dispatch); } render() { return } } hoistNonReactStatics(Component, AsyncActionComponent); return AsyncActionComponent; } }