Inspired by Facebook Content Placeholder and this article: https://cloudcannon.com/deconstructions/2014/11/15/facebook-content-placeholder-deconstruction.html. Can be used for both tables and lists.
npm install --save react-loading-placeholder
import LoadingPlaceholder from 'react-loading-placeholder'
<LoadingPlaceholder numberOfRows={10}></LoadingPlaceholder>
<LoadingPlaceholder numberOfRows={10} heightOfRows={40} spaceBetween={10}></LoadingPlaceholder>
<LoadingPlaceholder numberOfRows={10} tableLayout={true}></LoadingPlaceholder>
<LoadingPlaceholder numberOfRows={10} tableLayout={true} filterOptions={{width: 300, height: 50}}></LoadingPlaceholder>