@media für React Style CSS

const mediaMatch = window.matchMedia('(min-width: 500px)');

console.log(mediaMatch.matches)
Dayanaohhnana