emote-icons
scans and replace string that match an emoticon
Install
NPM
$ npm install emote-icons --save
Usage
Import
;; //load style
for smaller emoticons import "emote-icons-sm.css" instead.
HTML
Emoticons Test Hello :)
React
;;; Component { return __html: ; } { return <div dangerouslySetInnerHTML= />; } { const html = ; return <div> </div>; }
you can also user "react-html-parser" if you don't want to use "dangerouslySetInnerHTML".
;;;; Component { const html = ; return <div> </div>; }