1.0.8 • Published 1 year ago

use-persian-lorem v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Persian Lorem Ipsum for React

Installation

To install the package, you can use npm:

npm i use-persian-lorem

Usage

this is very simple, just open a {} within your jsx element and write usePersianLorem(wordNum) and you are good to go :)

wordNum is the number of the words you'll have within your jsx element. the default value is 100 (in case you don't want to pass a number to it)

import {usePersianLorem} from "use-persian-lorem";
function MyComponent() {
return (
    <p>{usePersianLorem(150)}</p> {/*generates 150 random persian words*/}

    <p>{usePersianLorem()}</p> {/*generate 100 random persian words (default)*/}

}
export default MyComponent;

Thats it. I hope you enjoy !