1.17.0 • Published 6 months ago
with-data-fetch v1.17.0
with-data-fetch
A custom React hoc for data fetching.
Install
npm i with-data-fetch
Usage
import React from 'react';
import withDataFetch from 'mine';
const AppWrapper = () => {
const getData = React.useCallback(() => {
return ['my data']
}, []);
return <App />
}
const App = ({data}) => {
return <span>{JSON.stringify(data)}</span>
};
export default withDataFetch(AppWrapper);
1.17.0
6 months ago
1.16.0
6 months ago
1.15.0
6 months ago
1.14.0
6 months ago
1.13.0
6 months ago
1.12.0
6 months ago
1.11.0
6 months ago
1.10.0
6 months ago
1.9.0
6 months ago
1.8.0
6 months ago
1.7.0
6 months ago
1.6.0
6 months ago
1.5.0
6 months ago
1.4.0
6 months ago
1.3.0
6 months ago
1.2.0
6 months ago
1.1.0
6 months ago
1.0.1
6 months ago
1.0.0
6 months ago