Activity
Mon
Wed
Fri
Sun
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Memberships

Developer Pro

Public • 135 • Free

12 contributions to Developer Pro
React Challenge 8
https://stackblitz.com/edit/vitejs-vite-qbsewk?file=src%2FApp.jsx FYI: The reason i did this check on line 34 `this.state.users.length !== 0` is that if i just check for `this.state.users` it will always return true since the starting state is an empty array already and empty arrays are truthy. For me it made sense to either check that there is something in the array or just remove that check completely. I'd love to know what you think about that. Thank you
3
2
New comment 3h ago
0 likes • 3h
Thank you very much for the review. I made the following changes 1. I removed the array is populated check 2. I made it so that you can only have each user once. 3. I added the key to the mapped element. Thanks again.
React Challenge 7
https://stackblitz.com/edit/vitejs-vite-6jmf46?file=README.md
2
4
New comment 1d ago
0 likes • 2d
Thank you for the review! Here is my V2. What i did differently was instead of having a state for each dropdown, i have a single state with an isOpen property and i modify that single state instead. Although i think my original is probably better practice in the long run as its way more intuitive to modify only the state of the component itself. Let me know if this is what you had in mind. Thank you very much https://stackblitz.com/edit/vitejs-vite-a9txyr?file=src%2FApp.jsx
React Challenge 6
https://stackblitz.com/edit/vitejs-vite-4yuhyl?file=README.md
2
2
New comment 2d ago
1 like • 2d
Done. Added the sorting feature here too.
React Challenge 5
https://stackblitz.com/edit/vitejs-vite-yc6way?file=src%2FApp.jsx
3
3
New comment 2d ago
1 like • 3d
Done. Let me know what you think. I also changed sort to toSorted because i realized that sort will mutate the caller, which might modify state directly.
React Challenge 4
https://stackblitz.com/edit/vitejs-vite-cuxfwl?file=src%2FApp.jsx
3
1
New comment 3d ago
1-10 of 12
Aaron Kagan
3
14points to level up
@aaron-kagan-9494
FullStack developer that wants to master what I do.

Active 1h ago
Joined Sep 9, 2024
powered by