Skip to content

Commit

Permalink
feat: 🎸 add useMedia hook
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Nov 3, 2018
1 parent a419078 commit 643775e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const useMedia = (mediaQuery: string, defaultState?: boolean) => boolean;
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports.useMedia = require('react-use/lib/useMedia').default;

0 comments on commit 643775e

Please sign in to comment.