react-star-rating-component
react-star-rating-component copied to clipboard
Editable (with half-stars) Not Working
Hi, while using this npm module for ratings the half star feature is not working ,It's not showing any stars. I just copied the below code :
renderStarIcon={(index, value) => { return ( <span> <i className={index <= value ? 'fas fa-star' : 'far fa-star'} /> </span> ); }} renderStarIconHalf={() => { return ( <span> <span style={{position: 'absolute'}}><i className="far fa-star" /></span> <span><i className="fas fa-star-half" /></span> </span> ); }} />
React Version Installed:16.7.0 npm version : 6.4.1
Thanks, Prabhat
Have you included fontawesome styles?