Created
April 23, 2020 08:45
-
-
Save mohnatus/18663466a8164af6a29398df9eecad1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { TextBlock, RectShape } from 'react-placeholder/lib/placeholders'; | |
| import ReactPlaceholder from 'react-placeholder'; | |
| const GhostPlaceholder = () => ( | |
| <div className='my-placeholder'> | |
| <RectShape color='gray' style={{width: 25, height: 70}} /> | |
| <TextBlock rows={6} color='blue'/> | |
| </div> | |
| ); | |
| <ReactPlaceholder ready={ready} customPlaceholder={<GhostPlaceholder />}> | |
| <MyComponent /> | |
| </ReactPlaceholder> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment