0.6.9 • Published 2 years ago

use-medium v0.6.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Decorative Banner

Installation

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

Usage

import { useMedium } from 'use-medium';

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

    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("driaug", {
  proxy: "https://my-custom-proxy.com/"
});

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

0.6.7

2 years ago

0.6.6

2 years ago

0.6.9

2 years ago

0.6.8

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago