I am using your lib inside my chat input component, which uses textarea onChange when user enters something to update the state. However this state change triggers EmojiPicker to render every time the user presses a key. Understandably this causes CPU use to go through the roof and input slows to a crawl.
Suggestion:
Add shouldComponentRender() handling using fx react-addons-shallow-compare:
I am using your lib inside my chat input component, which uses textarea
onChange
when user enters something to update the state. However this state change triggers EmojiPicker to render every time the user presses a key. Understandably this causes CPU use to go through the roof and input slows to a crawl.Suggestion:
Add
shouldComponentRender()
handling using fxreact-addons-shallow-compare
: