Awesome article, thank you for sharing! I had a couple questions about your final code snippet example.
I'm new to React, and I'm a little confused about how to access the task information properties (isLoading, percentage, runningTasks). Are those automatically part of the component's props when I export the component using withStatus?
Also, where does withStatus come from? I don't see it in the imports at the top - is it supposed to be there, or is that actually supposed to be useStatus?
Awesome article, thank you for sharing! I had a couple questions about your final code snippet example.
I'm new to React, and I'm a little confused about how to access the task information properties (
isLoading
,percentage
,runningTasks
). Are those automatically part of the component'sprops
when I export the component usingwithStatus
?Also, where does
withStatus
come from? I don't see it in the imports at the top - is it supposed to be there, or is that actually supposed to beuseStatus
?Firstly, thanks for your response.
1 - Exactly as you said. They are automatically part of the component when you export the component using "withStatus"
2 - Yes it looks like I made a small typo. That "withStatus" needs to be imported. Thank you for noticing. I made the necessary correction.