Migrate from 7 to 8
Version 8
is a vast rewrite.
#
1. Fallback for CSS Grid Layout was removedUntil version 7
react-raster provided a fallback for browsers, that do not support CSS Grid Layout. In version 8
this feature was removed. If you rely on it, you need to stick to version 7.
#
2. Exports have changedBox
is now default export.Types
is nowProps
.
#
3. Grid is now BoxChange all Grid
-components to Box
#
4. Box-Alignment was removed- react-raster used to provide alignment
center
andright
for CSS Grid Layout. The props were namedalignX
andalignY
. This feature was removed. - In Grid Layout Boxes are aligned with
margin
now manually. - With Flexbox Boxes are aligned with
justifyContent
andalignItems
/alignContent
.
#
5. Props changed names- alignX โ justifyContent
- alignY โ alignItems/alignContent
- attrs โ
removed - bottom โ marginBottom
- cssMode โ
removed - gutterX โ gridRowGap
- gutterY โ gridColumnGap
- hasChildBoxes โ
removed - left โ marginLeft
- right โ marginRight
- css โ styles
- tag โ as
- top โ marginTop