A custom React hook generating crypting text effect.
npm install use-dencrypt-effect 
A custom React hook generating crypting text effect.
Live demo: https://codesandbox.io/s/use-dencrypt-effect-7td0f.
``bash`
npm install --save use-dencrypt-effect
`tsx
import * as React from "react";
import { useDencrypt } from "use-dencrypt-effect";
const Example = () => {
const [value, setValue] = useDencrypt("initialValue");
return
API
$3
Returns a tuple
[value, setValue] consisting of an actual value and a method to set a new value. Just like useState() hook.#### value
Type:
stringResult of the animation.
#### setValue(newValue)
Sets a value and starts new animation.
Returns a promise which is resolved when animation for
newValue ends.##### newValue
Type:
stringA value used for next animation.
#### initialValue
Type:
stringOptional value that is returned immediately.
#### options
Type:
ObjectAll parameters are optional.
##### chars
Type:
string\
Default: -./^*!}<~$012345abcdefCharacters used for the effect. Picked by random.
##### interval
Type:
number\
Default: 50Number of miliseconds it takes for every animation step (one character).
Examples
./src/examples directory.- Custom Characters
- Initial Value
- Loop Through Values
- Use without React hook
$3

`js
const Example = () => {
const [value, setValue] = useDencrypt({ chars: "_" }); // ...
``