React Hook for generating random lorem ipsum words, sentences, paragraphs
npm add use-lorem-ipsum
const message = useLoremIpsum(type, count);
Name | Type | Required | Default value | Description |
---|---|---|---|---|
type |
string |
yes | - | specify one from words , sentences , paragraphs |
count |
number |
optional | 1 | specify number of times the type should be repeated |
import React from 'react'
import { useLoremIpsum } from 'use-lorem-ipsum'
export default () => {
const message = useLoremIpsum("words", 2);
return (
<div>
Hello {message}
</div>
);
}
Thanks goes to these wonderful people (emoji key):
Harsh Makadia 💻 🎨 🤔 |
This project follows the all-contributors specification. Contributions of any kind welcome!