Created
March 22, 2018 18:46
-
-
Save Aljullu/2842f76b7dfa5dfd23ff813e636182c9 to your computer and use it in GitHub Desktop.
Article.jsx (react-lazy-load-component example)
This file contains 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 React from 'react'; | |
import { ArticleContent, ArticleComments } from 'my-app'; | |
import { LazyLoadComponent } from 'react-lazy-load-image-component'; | |
const Article = ({ articleId }) => ( | |
<div> | |
<ArticleContent id={articleId} /> | |
<LazyLoadComponent> | |
<ArticleComments id={articleId} /> | |
</LazyLoadComponent> | |
</div> | |
); | |
export default Article; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment