We should add it as a prop then, yes. I wonder why it's missing from their documentation. So this should only work for <Grid fluid> or also for <Grid>?
react-flexbox-grid is meant to be strictly React bindings for flexboxgrid, not fix its shortcomings. .wrap is not a part of flexboxgrid, therefore should not be included.
What is the proper way to get a centered grid with max-width?
<Grid />
it sets max-width, but doesn't center, and there is no padding.<Grid fluid />
full width with paddingsat http://flexboxgrid.com/ they added an extra
wrap
class.I solved it by creating a custom global class, and I use
<Grid className="wrap"/>
, but I think it should be supported directly by the component.Any thoughts?