
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
react-advanced-rating
Advanced tools
A highly customizable and animated rating component for React, allowing you to add star ratings with animation effects, and supports editable, read-only, alert, and reset functionalities.
A highly customizable and animated rating component for React, allowing you to add star ratings with animation effects, and supports editable, read-only, alert, and reset functionalities.
https://react-advanced-animated-rating.vercel.app/
Your project needs to use React 16.8 or later. react-advanced-rating uses modern web technologies, making it fast, lightweight, and easy to style. This comes at the cost of supporting only modern browsers , as shown supporting only modern browsers.
Add react-advanced-rating
to your project by running one of the following commands:
npm install react-advanced-rating
# or
yarn add react-advanced-rating
import React, { useState } from "react";
import Rating from "react-advanced-animated-rating";
function App() {
const [currentRating, setCurrentRating] = useState(3);
const [readOnlyRating, setReadOnlyRating] = useState(4);
const [ratingAlert, setRatingAlert] = useState(3);
const [resetRating, setResetRating] = useState(2);
const handleRatingChange = (newRating) => {
setCurrentRating(newRating);
};
const handleRatingChangeAlert = (newRating) => {
alert("Rating: " + newRating);
setRatingAlert(newRating);
};
const handleResetRatingChange = (newRating) => {
setResetRating(newRating);
};
const resetRatingValue = () => {
setResetRating(2);
};
return (
<Rating
rating={currentRating}
editable={true}
enableAnimation={true}
starColor="#FFDF00"
backgroundClass="bg-[#f8f8f8] rounded-md p-0"
onChange={handleRatingChange}
/>
);
}
export default App;
FAQs
A highly customizable and animated rating component for React, allowing you to add star ratings with animation effects, and supports editable, read-only, alert, and reset functionalities.
The npm package react-advanced-rating receives a total of 0 weekly downloads. As such, react-advanced-rating popularity was classified as not popular.
We found that react-advanced-rating demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.