react-emoji-hash
v1.0.0
Published
React hook for text hash as emojis
Downloads
30
Readme
react-emoji-hash
react spoiler hook
Install
npm install --save react-emoji-hash
Usage
import React, { Component } from 'react'
import { useHashEmoji } from 'react-emoji-hash'
const App = () => {
const textToEmoji = useHashEmoji('Hello World');
const textToEmoji_2 = useHashEmoji('Hello World');
return (
<div>
Hello World: {textToEmoji} // output: Hello World: 👘🐷🇰🇭💾
<br/>
A.Ozan Tekin: {textToEmoji_2} // output: Hello World: 🍄🇲🇹🚻🐍
</div>
)
}
License
MIT © ahmetozantekin