spse-memes

1.2.2 • Public • Published

Easy posts getter for r/spsememes

NPM page

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));
}

Package Sidebar

Install

npm i spse-memes

Weekly Downloads

4

Version

1.2.2

License

MIT

Unpacked Size

3.86 kB

Total Files

4

Last publish

Collaborators

  • gamecraftcz