How do I pass a setState function from one component to another component that is not a child?
it is via closest common parent, details here:
since you mentioned context in the post title, maybe this would be also relevant
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.