deku-rating
v1.1.0
Published
Rating component for deku
Downloads
6
Maintainers
Readme
deku-rating
Rating component for deku
Install
$ npm install --save deku-rating
Usage
import Rating from 'deku-rating';
export function render({state}, setState) {
const {value} = state;
const icon = <div>★</div>;
function onRate(prevValue, nextValue) {
setState({value: nextValue});
}
return <Rating icon={icon} max='10' value={value} onRate={onRate}/>;
}
License
MIT © Andreas Gillström