How to pass state from one functional component to another which is being rendered by a button component?

后端 未结 0 853
小蘑菇
小蘑菇 2021-01-15 04:52

Suppose I have component1 which has a state that I want to share with component2, now component2 is being rendered by a button component (not html button) by using useHistor

相关标签:
回答
  • 消灭零回复
提交回复
热议问题