MCPcopy Create free account
hub / github.com/Lobos/react-ui / getBackground

Method getBackground

src/Rating.js:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 getBackground () {
63 let items = [],
64 icon = this.getIcon(0);
65 for (let i = 0; i < this.props.maxValue; i++) {
66 items.push(cloneElement(icon, { key: i }));
67 }
68
69 return <div className="rct-rating-bg">{items}</div>;
70 }
71
72 handleChange (val) {
73 this.setValue(val);

Callers 1

Rating.jsFile · 0.80

Calls 1

getIconMethod · 0.95

Tested by

no test coverage detected