Closed IAmRC1 closed 2 years ago
Basically, you have to put the unit with the values for example 20px
or 1.5rem
. 20 as a number will work but 20 as a string will not work unless you put a unit with it. The purpose of the string value implementation is to provide the choice to the user so they can use a wide range of units with any value. Hope you will get it.
Thank you for the explanation @Usamaahmad751 👍🏻
So, I get this warning when giving gutter as number
Warning: Failed prop type: Invalid prop
gutterof type
numbersupplied to
Masonry2, expected
string.
But the gutter value takes effect only when its number and not a string.