/react-rss-feed

Simple React component that fetches displays an RSS feed, tested with Jest and Enzyme

Primary LanguageJavaScript

React RSS feed component

Simple React component that fetches an RSS (XML) feed, converted to JSON and structured in a modifiable BEM way.

Built for use in a commercial project, but mostly an excuse to demo webpack, Jest and Enzyme. Also uses ESLint and Babel.

Example

<RSSFeed url="http://example.com/feed.rss" count="10"/>

Scripts

Build

npm run build

Watch

npm run watch

Test

npm run test

Lint

npm run lint

Example http://localhost:8080/example/

npm run start