An open API service indexing awesome lists of open source software.

https://github.com/hecom-rn/basicwrapper

基础封装高阶组件,加入刷新图标。
https://github.com/hecom-rn/basicwrapper

Last synced: 9 months ago
JSON representation

基础封装高阶组件,加入刷新图标。

Awesome Lists containing this project

README

          

# BasicWrapper

[![npm version](https://img.shields.io/npm/v/@hecom/wrapper-basic.svg?style=flat)](https://www.npmjs.com/package/@hecom/wrapper-basic)
[![Build Status](https://travis-ci.org/hecom-rn/BasicWrapper.svg?branch=master)](https://travis-ci.org/hecom-rn/BasicWrapper)

这是用于加载状态封装的高阶组件,增加了`apiRefresh`接口给待封装的组件,参数也被取出后传入。

只导出高阶组件,`(WrappedComponent) => React.PureComponent`格式。