You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 14, 2019. It is now read-only.
On the db we should store “votes” array, which consists of objects like this:
{ userId: someid, vote: 5 }
Only authorized users can vote; if user already voted - we highlight he/she vote choice, and update it in db when user update ui; from the db we got “rating” value which is average from all users votes and current user vote (if any);
https://www.npmjs.com/search?q=React%20rating
On the db we should store “votes” array, which consists of objects like this:
{ userId: someid, vote: 5 }
Only authorized users can vote; if user already voted - we highlight he/she vote choice, and update it in db when user update ui; from the db we got “rating” value which is average from all users votes and current user vote (if any);