react-emoji-hash
react hook for text hash as emojis
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('A.Ozan Tekin');
return (
<div>
Hello World: {textToEmoji} // output: Hello World: 👘🐷🇰🇭💾
<br/>
A.Ozan Tekin: {textToEmoji_2} // output: A.Ozan Tekin: 🍄🇲🇹🚻🐍
</div>
)
}
License
MIT © ahmetozantekin
based on pymojihash