useAryanHook

A React Hook to generate placecage.com placeholder image URLs

github.com/akap97/use-aryan-hook

How To Use

npm install use-aryan-hook

create a settings object as shown below with following options

1) Inupt Type parameter A) calm: null, B) gray: 'g', C) crazy: 'c', D) gif: 'gif'

2) Input Width and Height

3) Input the number of times as count

Examples

Set and grab message

Input:

const hookSettings = {
    type: 'gif',
    width: 500,
    height: 500,
    count: 2
    }

    const cage = useAryanHook(hookSettings);

Output:

["https://www.placecage.com/500/500","https://www.placecage.com/500/500"]