Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/driaug/use-medium

Get your latest Medium articles in React hook
https://github.com/driaug/use-medium

medium react react-hooks

Last synced: 10 days ago
JSON representation

Get your latest Medium articles in React hook

Awesome Lists containing this project

README

        

![Decorative Banner](https://banners.beyondco.de/Use-Medium.png?theme=light&packageManager=yarn+add&packageName=use-medium&pattern=leaf&style=style_1&description=Get+your+latest+Medium+articles+in+React&md=1&showWatermark=0&fontSize=100px&images=rss)

## Installation
- `npm i use-medium`
- `yarn add use-medium`

## Usage
```tsx
import { useMedium } from 'use-medium';

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

return (


);
};
```

## 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
```ts
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`.