I'm using Grommet React library for ux. I'm working on a phone layout project.
I've a prop from redux state that represent an array of element. The initial state is empty array and, after server returning, the props will be
[{ country: 'England' }, { country: 'Germany' }, { country: 'Spain' }, { country: 'Zimbawe' }]
What I want is a column layout with exactly two columns by row where each column get 50% of available space.
To do so I've used the Column component in this way
<Columns responsive={false}>
{this.props.countries.map(this.renderCountries)}
</Columns>
And finally the renderCountries method
renderCountries (country) {
return <Box key={country.country}>{country.country}</Box>
}
But with this code the system will render only one element by row. How can I get two columns by row?
Thanks in advance