I need some context for this. Google isn't helping with a term like "component". I see the install command itself is "component". I'm not familiar with this. What am I looking at? I would like to understand. Thanks!
Client-side development currently suffers from a lack of structure, more importantly this lack of structure and fundamental sharing of assets makes it difficult to abstract libraries into smaller subsets. Normally you would think twice about separating your library into several parts, because telling end-users to install several pieces is tedious, error-prone, and frankly annoying. Component makes this extremely easy, and we may all benefit from creating smaller lego-blocks for the web.
I've got a brilliant idea. How about we stop assuming that only Linux users browse HN or github! Some of us can't simply "$ component install". And it's a .js file... why is there an "installation" to begin with?
tl;dr The Viewport is a componente to ease viewport management. You can get the dimensions of the viewport and beyond, which can be quite helpful to perform some checks with JavaScript.
15 comments
[ 0.17 ms ] story [ 50.3 ms ] threadhttps://github.com/component/component/wiki/F.A.Q