2.0.6 • Published 7 months ago

use-rss-medium v2.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

use-rss-medium

Get your latest medium article in react. A npm package to format medium rss post articles into json formate in a react application.

Installation

  • npm i use-rss-medium
  • yarn add use-rss-medium

Usage

import { useMedium } from 'use-rss-medium';

const Articles = () => {
    const articles = useMedium("cabbageweb");

    return (
      <ul>
        {articles.map(article => (
          <li key={article.guid}>
            <a href={article.link}>{article.title}</a>
            <p>{article.description}</p>
          </li>
        ))}
      </ul>
    );
};

Remarks

Proxy

This project makes use of a free Proxy service to access the Medium API. If for any reason you want to use another service then you can specify it in the configuration paramters

const articles = useMedium("cabbageweb", {
  proxy: "https://my-custom-proxy.com/"
});

The above configuration will result in the following endpoint: https://my-custom-proxy.com?url=https://medium.com/feed/@cabbageweb.

2.0.6

7 months ago

2.0.5

7 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.0.7

7 months ago

1.0.5

7 months ago

1.0.0

7 months ago