@saniekasmara/use-random-string-generator
v1.1.1
Published
A module that provide you with random string provided
Downloads
2
Readme
@saniekasmara/use-random-string-generator
A module that provide you with random string provided
Install
npm install --save @saniekasmara/use-random-string-generator
Usage
import React from 'react'
import { UseRandomString } from '@saniekasmara/use-random-string-generator'
import '@saniekasmara/use-random-string-generator/dist/index.css'
const App = () => {
const { text, isLoading } = UseRandomString()
if (isLoading) {
return (
<div>
<h1>Loading...</h1>
</div>
)
}
if (text) {
return (
<div>
<h1>Text Generated:</h1>
<p>{text}</p>
</div>
)
}
return null
}
License
MIT © saniekasmara