Learn How to Build Responsive Websites in React Without CSS

1 · · April 23, 2019, midnight
Believe it or not, you don’t need CSS @media queries. In this article, learn a few lines of JavaScript that will allow you to mimic the features of @media queries and build fully responsive websites. The biggest reason developers don’t opt for inline styles in their React projects is because it lacks some notable CSS features: :hover, :first-child and other pseudo-selectors @keyframe animations @media queries The usual solution is to use CSS-in-JS libraries like styled-components or Radium to ...