Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1023 Bytes

readme.md

File metadata and controls

49 lines (32 loc) · 1023 Bytes

react-emoji-textarea

react-emoji-textarea version react-emoji-textarea license

Textarea with emoji prediction/selection.

Installation

npm i --save react-emoji-textarea

Example

react-emoji-textarea

How to use

import React, { useEffect, useState } from 'react';
import EmojiTextarea                  from 'react-emoji-textarea';

function App() {
    
    const [submit, setSubmit] = useState(false);
    const [text,   setText]   = useState('');

    return (
        <div className = 'App'>
            <EmojiTextarea
                setText   = {setText}
                setSubmit = {setSubmit}
            />
        </div>
    );
    
}

export default App;

Author

Erik Martín Jordán

License

This component is open source and available under the MIT License.