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-input
Advanced tools
React.js component for entering 0-N stars (N is 5 by default). See the demo.
Made for Browserify; graphics and CSS bundled.
npm install --save react-star-rating-input
See the code of the demo mentioned above.
Static layout
size
-- how many stars to display. The default value is 5showClear
-- hides the "Clear" link when false
. The default value is true
Interaction
value
-- how many stars are selectedonChange: function (value) {...}
-- your value
change handlerreact-intl-based. To translate the component, please pass the
messages
property, containing:
{clear: Your own text for "Clear"'}
This component depends on global Intl
object. You can polyfill it with
intl package:
if (!global.Intl) {
require('intl');
}
Why have a react-intl
dependency instead of just setting the clear
text as a prop?
Well, that allows using react-star-rating-input
uniformly in bigger applications, and passing all
the namespaced translations, from the root, down the React components hierarchy, -- automatically,
with the help of IntlMixin
.
FAQs
React.js components for entering/displaying star ratings
The npm package react-star-rating-input receives a total of 8 weekly downloads. As such, react-star-rating-input popularity was classified as not popular.
We found that react-star-rating-input 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.