applying useContext to a specific iteration
Unanswered
Great Skua posted this in #help-forum
Great SkuaOP
I have this code:
The 'allServicesNamesExceptMySubscriptions' needs to be applied only to one serviceCardsSection.
How do I do that properly?
{servicesTypes.map((filteredServices, index) => {
return (
<ServiceCardsSection
key={index}
sectionTitle={sectionTitle[index]}
services={filteredServices}
allServicesNamesExceptMySubscriptions={
allServicesNamesExceptMySubscriptions
}
/>
);
})}The 'allServicesNamesExceptMySubscriptions' needs to be applied only to one serviceCardsSection.
How do I do that properly?