A dynamic grid layout, inspiration from Pinterest
npm install --save dynamic-grid-layout
import React, { Component } from 'react'
import { GridView } from 'dynamic-grid-layout'
import 'dynamic-grid-layout/dist/index.css'
const Item = ({ item }: any) => <p>{item}</p>
const Example = () => {
const items = ['item1', 'item2']
return (
<GridView
items={items}
renderItem={(item: any) => <Item item={item}></Item>}
/>
)
}