I want to hide some divs when it hit certain breakpoints, in bootstrap v4 there is something like: hidden-sm-down
After reading the Grid documentation, setting <Col xs={0}></Col>
may be the solution
here is my example: http://codepen.io/kossel/pen/BQgzNg?editors=0110
However expected with only xs={0}
would hide the sidebar at XS view, but it hidden at every screen size, the solution/hack is to put add another breakpoint like sm={1}
to make it work as expected.
What is the correct way to do this?
I should have respond my own question. it's not a bug, it's the intended design.
after reading https://github.com/roylee0704/react-flexbox-grid/issues/13
the idea of "Hiding element when in xs" size is actually an anti-patter for responsive design. the idea should be "show when more than sm size"
We should keep in mind "mobile first", which means, we should hide the menu by default (as it should be hidden for mobile) and then show it according to the screen size.
and then do
but if we really need something handy, I also added this to my mixin.less