Skip to content

Commit

Permalink
Add useFetch hook to index exports. Issue #25
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Dec 6, 2018
1 parent 4cfda97 commit a987830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,5 @@ const Fetch = ({ children, ...props }) => (
);
Fetch.Consumer = FetchContext.Consumer;

export default Fetch;
export { useFetch };
export default Fetch;
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default } from './Fetch';
export { default, useFetch } from './Fetch';
export { default as SimpleCache } from './SimpleCache';
export { parseBody } from './utils';

0 comments on commit a987830

Please sign in to comment.