profile
viewpoint

Ask questions[Hooks] Uncaught TypeError: Object(...) is not a function

Hello, I was excited to use react-responsive with hooks (v7.0.0), but whatever I try, I get this error: Uncaught TypeError: Object(...) is not a function

Am I doing something wrong ? const isLarge = useMediaQuery({ query: '(min-width: 900px)' }); const isLarge = useMediaQuery({ minWidth: 900 }); did not work either.

Thanks for your help. :)

contra/react-responsive

Answer questions jancama2

@noliiva same for me, looks like the last version in npm doesn't include hooks, @contra could you publish it? :))

useful!
source:https://uonfu.com/
answerer
Marek Janča jancama2 @AckeeCZ Prague www.ackee.cz Front-end developer at Ackee.cz ❤ IT, UX, coffee, art, architecture, music, books, movies, nature, mountains, nordic countries, slackline and running
Github User Rank List