react-single-element-rating
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

react-single-element-rating

单元素实现评星组件 | rating component with single element

screenshot

使用 | usage

import { useState } from "react"
import Rating from 'react-single-element-rating'

const BasicRating = () => {
  let [rating, setRating] = useState(0)
  return (<Rating value={rating} onChange={setRating} />)
}

export default BasicRating

示例 | examples

codes:

examples/basic/comps

run:

git clone https://github.com/postor/react-single-element-rating
cd react-single-element-rating/examples/basic
npm run dev

Readme

Keywords

none

Package Sidebar

Install

npm i react-single-element-rating

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

15.1 kB

Total Files

12

Last publish

Collaborators

  • lyjhit