A step-by-step guide on how to build a rating widget using ReactJS