MCPcopy
hub / github.com/Semantic-Org/Semantic-UI-React / render

Method render

src/modules/Rating/RatingIcon.js:34–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 render() {
35 const { active, className, selected } = this.props
36 const classes = cx(
37 useKeyOnly(active, 'active'),
38 useKeyOnly(selected, 'selected'),
39 'icon',
40 className,
41 )
42 const rest = getUnhandledProps(RatingIcon, this.props)
43 const ElementType = getElementType(RatingIcon, this.props)
44
45 return (
46 <ElementType
47 {...rest}
48 className={classes}
49 onClick={this.handleClick}
50 onKeyUp={this.handleKeyUp}
51 onMouseEnter={this.handleMouseEnter}
52 role='radio'
53 />
54 )
55 }
56}
57
58RatingIcon.propTypes = {

Callers

nothing calls this directly

Calls 3

useKeyOnlyFunction · 0.90
getUnhandledPropsFunction · 0.90
getElementTypeFunction · 0.90

Tested by

no test coverage detected