투표 순위 - OhMinsSup/tip-review GitHub Wiki
voteRanking = (id: number, currentPercent: number) => {
const { artistList, totalCount } = this.state;
const filterItem = artistList.filter(artist => {
return currentPercent === (artist.count / totalCount) * 100 && artist.id !== id;
});
filterItem.map(item => {
$(`.ranking-${item.id}`).text(item.ranking);
});
};