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.
dw-neit-rc-rate
Advanced tools
React Rate Component
npm install
npm start
Local: http://localhost:9001/
import React from 'react';
import ReactDOM from 'react-dom';
import Rate from 'dw-neit-rc-rate';
ReactDOM.render(
<Rate />,
document.getElementById('root')
)
import React from 'react';
import ReactDOM from 'react-dom';
import Rate from 'dw-neit-rc-rate';
import styled from 'styled-components';
const StyledRate = styled(Rate)`
&.dw-neit-rc-rate {
font-size: ${({ size }) => size}px;
}
`
ReactDOM.render(
<StyledRate size="24" />,
document.getElementById('root')
)
name | type | default | description |
---|---|---|---|
count | number | 5 | Star numbers |
value | number | - | Controlled value |
defaultValue | number | 0 | Initial value |
allowHalf | boolean | false | Support half star |
allowClear | boolean | true | Reset when click again |
style | object | {} | |
onChange | function | (value) => {} | onChange will be triggered when click |
onHoverChange | function | (value) => {} | onHoverChange will be triggered when hover on stars |
character | ReactNode | (props) => ReactNode | ★ | The each character of rate |
disabled | boolean | false | |
direction | string | ltr | The direction of rate |
npm test
npm run chrome-test
npm run coverage
open coverage/ dir
dw-neit-rc-rate is released under the MIT license.
FAQs
React Star Rate Component
The npm package dw-neit-rc-rate receives a total of 3 weekly downloads. As such, dw-neit-rc-rate popularity was classified as not popular.
We found that dw-neit-rc-rate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.