New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-rating-emoji

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-rating-emoji

animated emoji rating component

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
180
increased by847.37%
Maintainers
1
Weekly downloads
 
Created
Source

react-rating-emoji

An animated emoji rating component

NPM JavaScript Style Guide

Install

npm install --save react-rating-emoji

Usage

import React, { useState } from 'react'

import { RatingComponent } from 'react-rating-emoji'
import 'react-rating-emoji/dist/index.css'

const App = () => {
  const [rating, setRating] = useState(0);

  const handleRating = (newRating) => {
    setRating(newRating);
  }

  return <RatingComponent rating={rating} onClick={handleRating} />
}

export default App

Props

propTypeDefaultRequiredDescription
ratingnumber0nocurrent rating
onClickeventnoevent handler (rating)
classNamestringnocontainer class name
idstringemoji-containernocontainer id name

License

MIT © https://github.com/ultimateakash

Keywords

FAQs

Package last updated on 20 Apr 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc