
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-simple-emoji
Advanced tools
A simple emoji picker component. :wink:
$ npm install react-simple-emoji
If you have main component, and you want to add emoji picker:
import React, { Component } from 'react';
import EmojiPicker from 'react-simple-emoji';
export default class App extends Component {
constructor() {
super();
this.state = { text: '', showSelector: false };
this.handleEmoji = this.handleEmoji.bind(this);
this.selectEmoji = this.selectEmoji.bind(this);
this.handleInputChange = this.handleInputChange.bind(this);
this.handleKeyDown = this.handleKeyDown.bind(this);
}
selectEmoji() {
this.setState({ showSelector: !this.state.showSelector });
}
handleInputChange(e) {
const text = e.target.value;
this.setState({ text });
}
handleKeyDown(e) {
if (e.keyCode === 13) return this.setState({ text: '' });
}
handleEmoji(emojiText) {
const inpuText = this.state.text;
this.setState({ text: `${inpuText}:${emojiText}:` });
}
render() {
return (
<div>
<input
value={this.state.text}
type="text"
onChange={this.handleInputChange}
onKeyDown={this.handleKeyDown}
/>
<EmojiPicker
show={this.state.showSelector}
selector={this.selectEmoji}
handleEmoji={this.handleEmoji}
/>
</div>
);
}
}
Required Type: boolean
Showing emoji picker state.
Required Type: function
Change emoji picker showing state.
Required Type: function
Handle input text and emoji.
Type: object
Custom your emoji search input style.
Type: object
Custom your selector box style.
$ npm test
$ npm run lint
MIT © Peng Jie
FAQs
Simple emoji picker.
The npm package react-simple-emoji receives a total of 0 weekly downloads. As such, react-simple-emoji popularity was classified as not popular.
We found that react-simple-emoji demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.