using page media in react styles code example
Example: @media for react style css
const mediaMatch = window.matchMedia('(min-width: 500px)');
console.log(mediaMatch.matches)
const mediaMatch = window.matchMedia('(min-width: 500px)');
console.log(mediaMatch.matches)