We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just to note:
When using with Next.js 13 I implemented it this way - isMediumScreen is defined on the first render, otherwise it was defined on window width change:
import { breakpoints, mediaBreakPointDown } from './styles/MediaQueries'; import dynamic from 'next/dynamic'; const MediaQuery = dynamic(() => import('react-responsive'), { ssr: false, }); const Component = ({ props} : PropsType) => { return ( <MediaQuery query={mediaBreakPointDown(breakpoints.md)}> {(isMediumScreen: boolean) => ( // Your component code here, using isMediumScreen )} </MediaQuery> ); };
The text was updated successfully, but these errors were encountered:
Want to add a nextjs section to the README as a PR?
Sorry, something went wrong.
@piotrszczesniak Can you include what you have included in your ./styles/MediaQueries ?
./styles/MediaQueries
No branches or pull requests
Just to note:
When using with Next.js 13 I implemented it this way - isMediumScreen is defined on the first render, otherwise it was defined on window width change:
The text was updated successfully, but these errors were encountered: