import React from "react"; import { withStyles } from "material-ui-next/styles"; const styles = { star: { cursor: "pointer", height: 25, width: 25, margin: 2, float: "left", backgroundColor: "grey" } }; const Star = ({ selected, classes }) => { return <div className={classes.star}>message</div>; }; export default withStyles(styles)(Star); How to apply the clip-path attribute to the Start component ?:
clip-path: polygon( 50 0 %, 63 % 38 %, 100 % 38 %, 69 % 59 %, 82 % 100 %, 50 % 75 %, 18 % 100 %, 31 % 59 %, 0 % 38 %, 37 % 38 % )},