Skip to content

Ab-dex/Voting-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Summary:

This is a simple project based on react interactivity.

It takes in data from seed.js in form of an array into the productList component.

The productList component inturn maps out the array and serves it as props to Product component creating individual product component depending on the number of items in the array.

A caret up icon is clicked to increase the number of votes per product; initial value votes is randomly generated as sorted in descending order.

Key Note:

In order to update the vote value from the child component - Product, a method has to be passed as props from parent to the child component, which calls the method when required (in this case, on click of the caret).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published