Components

BreakingNews

<BreakingNews />

Constructor

# <BreakingNews />

This component will automatically fetch breaking news every 30 seconds, and render the provided view.

Example

import { renderBreakingNews } from '@quintype/framework/client/start';
const BreakingNewsView = ({breakingNews, breakingNewsLoaded}) =>
  <ul>{breakingNews.map((item, index) => <li key={index}><BreakingNewsItem item={item} /></li>)}</ul>
renderBreakingNews('breaking-news-container', store, BreakingNewsView);
See:

View Source components/breaking-news.js, line 54