8000 🗳 React rating components · Issue #7 · olehmelnyk/hbo · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 14, 2019. It is now read-only.
This repository was archived by the owner on Oct 14, 2019. It is now read-only.

🗳 React rating components  #7

Open

Description

@olehmelnyk

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0