1.0.2 • Published 4 years ago

react-single-element-rating v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago