Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ben explore #538

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

BenjaminBatres
Copy link

Task
I fetched the user's data, implemented a load more button, and a sorting selection, and added a loading state.

How
I used Axois to fetch the user's data. I created a useState that loads the first eight items in the array, and then I created a function that displays four items on the page when a user clicks the button. For the sorting selection, I created a function that sorts high prices to low prices, and low prices to high prices, then most likes to less likes. After I implemented a loading state.
Screenshot 2025-01-18 103324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant