spse-memes
v1.2.2
Published
This package gets hot memes from r/spsememes and returns them as object.
Downloads
4
Readme
Easy posts getter for r/spsememes
Install
npm i spse-memes
or yarn add spse-memes
Usage Examples
useMemes() hook - Render Meme images
import {useMemes} from "spse-memes";
const MemesList = () => {
const memes = useMemes();
return <div>
memes.map(meme => <img src={meme.image}/>)
</div>
}
getMemes() function - Print meme objects to console
import {getMemes} from "spse-memes";
const printMemesObjects = () => {
getMemes().then(memes => console.log(memes));
}