Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-star-rating-lite
Advanced tools
React Star Rating Lite is a Star Rating component for react code which is completely based on Scalable Vector Graphics(SVG).
You can install react-star-rating-lite component using the npm package manager:
npm install --save react-star-rating-lite
The react-star-rating-lite component peer depends on the React library.
You can install React and related dependencies using npm too:
npm install --save react
1.) Require the react-star-rating-lite
Component
var Rating = require('react-star-rating-lite');
2.) Start using it
<Rating/>
value
property<Rating value='3'/>
readonly
property<Rating value='3' readonly/>
color
property.<Rating color="red"/>
Any color code can be provided. If not specified, the value will be defaulted to 'orange'.
weight
property. weight is measured in px.<Rating weight="24"/>
If weight it not specified, the value will be defaulted to 30px
onClick
property to trigger an action when the user choose the rating.This property function will be invoked with the selected rating as the argument function(ratedVal){}
.
function onClickHandler(ratedVal)
{
cosole.log("Selected Rating",ratedVal)
}
<Rating onClick={onClickHandler}/>
FAQs
'Simple Star Rating Module'
We found that react-star-rating-lite 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.