Skip to content

Commit

Permalink
feat: add a usePageContext hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jul 29, 2020
1 parent 5ce869d commit a78d3d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hooks/usePageContext.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { useContext } from 'react';
import { PageContext } from '../components/PageContext';

const usePageContext = () => useContext(PageContext);

export default usePageContext;

0 comments on commit a78d3d8

Please sign in to comment.