Introducing Responsive #react Components
▻https://hackernoon.com/introducing-responsive-react-components-f6cd14976570?source=rss----3a814
TL;DR — You can render viewport specific components in React with a one-linerReact is awesome and the whole world agrees to it unanimously. Development is a whole lot faster and easier when we look at everything as components. Since everything is #javascript driven, React renders only the code that is necessary based on application’s state. It doesn’t matter if you have over a thousand components and tens of thousands of lines of code. If you lazy load your components, you load only what’s necessary for the user and I think that is the biggest win with using React.That being said, have you ever wondered what happens when you write media queries in your React codebase?You render elements that’s not supposed to be in a particular viewport and hide it using css.In this exampleimport React from (...)
#reactjs #npm #npm-weekly