diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..a270634 --- /dev/null +++ b/index.d.ts @@ -0,0 +1 @@ +export const useMedia = (mediaQuery: string, defaultState?: boolean) => boolean; diff --git a/index.js b/index.js new file mode 100644 index 0000000..d1a6dbf --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +exports.useMedia = require('react-use/lib/useMedia').default;