? Add Emoji Picker To An Input Field In React App [Easy way].

? Simple And Easiest way to add an emoji picker to your React app.

Emojis are now such an essential part of how we communicate that we simply can’t afford to leave them out of our applications. They add an extra dimension to how we express o…


This content originally appeared on DEV Community and was authored by Chetan Atrawalkar?CA.

? Simple And Easiest way to add an emoji picker to your React app.

Emojis are now such an essential part of how we communicate that we simply can’t afford to leave them out of our applications. They add an extra dimension to how we express ourselves in our day-to-day interactions that can be otherwise difficult to do with text only?.

▶️ How to add an emoji picker to your React App.

I’m using react-input-emoji the best solution from my opinion.

  • React InputEmoji provides a simple way to have an input element with emoji picker support. Click the picker button next to the input field and select an emoji from the popup window. Done! emoji

? Let's Checkout....

Step 1 :- Install

You can get it on npm.
npm install react-input-emoji --save

Step 2 :- Usage

After install import the react-input-emoji component to display your input with emoji.

import React, { useState } from 'react'
    import InputEmoji from 'react-input-emoji'

    export default function Example () {
      const [ text, setText ] = useState('')

      function handleOnEnter (text) {
        console.log('enter', text)
      }

      return (
        <InputEmoji
          value={text}
          onChange={setText}
          cleanOnEnter
          onEnter={handleOnEnter}
          placeholder="Type a message"
        />
      )
    }

Output ⏬.

demo

Click Here For More Details.

?Please share your valuable feedback in comment section what think about this.
Don't forget to like and subscribe Keep Following ?.

Keep Claim And Just Code It ?.

Support With Coffee ❤️


This content originally appeared on DEV Community and was authored by Chetan Atrawalkar?CA.


Print Share Comment Cite Upload Translate Updates
APA

Chetan Atrawalkar?CA. | Sciencx (2021-08-17T05:05:05+00:00) ? Add Emoji Picker To An Input Field In React App [Easy way].. Retrieved from https://www.scien.cx/2021/08/17/%f0%9f%98%83-add-emoji-picker-to-an-input-field-in-react-app-easy-way/

MLA
" » ? Add Emoji Picker To An Input Field In React App [Easy way].." Chetan Atrawalkar?CA. | Sciencx - Tuesday August 17, 2021, https://www.scien.cx/2021/08/17/%f0%9f%98%83-add-emoji-picker-to-an-input-field-in-react-app-easy-way/
HARVARD
Chetan Atrawalkar?CA. | Sciencx Tuesday August 17, 2021 » ? Add Emoji Picker To An Input Field In React App [Easy way].., viewed ,<https://www.scien.cx/2021/08/17/%f0%9f%98%83-add-emoji-picker-to-an-input-field-in-react-app-easy-way/>
VANCOUVER
Chetan Atrawalkar?CA. | Sciencx - » ? Add Emoji Picker To An Input Field In React App [Easy way].. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/17/%f0%9f%98%83-add-emoji-picker-to-an-input-field-in-react-app-easy-way/
CHICAGO
" » ? Add Emoji Picker To An Input Field In React App [Easy way].." Chetan Atrawalkar?CA. | Sciencx - Accessed . https://www.scien.cx/2021/08/17/%f0%9f%98%83-add-emoji-picker-to-an-input-field-in-react-app-easy-way/
IEEE
" » ? Add Emoji Picker To An Input Field In React App [Easy way].." Chetan Atrawalkar?CA. | Sciencx [Online]. Available: https://www.scien.cx/2021/08/17/%f0%9f%98%83-add-emoji-picker-to-an-input-field-in-react-app-easy-way/. [Accessed: ]
rf:citation
» ? Add Emoji Picker To An Input Field In React App [Easy way]. | Chetan Atrawalkar?CA. | Sciencx | https://www.scien.cx/2021/08/17/%f0%9f%98%83-add-emoji-picker-to-an-input-field-in-react-app-easy-way/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.