Created
June 10, 2018 06:05
StarRating React -- 4c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class RatingInputs extends Component { | |
constructor() { | |
super() | |
this.handleRating = this.handleRating.bind(this) | |
} | |
// ... | |
handleRating() { | |
let rating = Number(this.refs.rating.value) | |
// More to come! | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment