@that-louiSubmitted about 1 month ago
tony/c.dev
@tony1cAll comments
- @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