Skip to content

Instantly share code, notes, and snippets.

@Aljullu
Created March 22, 2018 18:46
Show Gist options
  • Save Aljullu/2842f76b7dfa5dfd23ff813e636182c9 to your computer and use it in GitHub Desktop.
Save Aljullu/2842f76b7dfa5dfd23ff813e636182c9 to your computer and use it in GitHub Desktop.
Article.jsx (react-lazy-load-component example)
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