Design comparison
SolutionDesign
Community feedback
- @tony1cPosted about 1 month ago
Great job on the solution! I noticed that in your code, you're using the state fetchState for tracking the loading status. Since it's being used as a boolean state (e.g., 'isLoading' and 'isOkay'), it might be more intuitive to rename it to something like isLoading and setIsLoading with a starting boolean state of false. This way, you can simply write isLoading ? <...> : <...> instead of fetchState === 'isLoading' and fetchState === 'isOkay'. This small change can make the code more concise and easier to follow. Keep it up!"
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord