How to send a value from component A to B (a component in the same level/sibling component) without re-rendering the A component in React?

前端 未结 0 1971
孤独总比滥情好
孤独总比滥情好 2021-01-16 16:52
//component A
const A = () => {

 const [confirm, setConfirm] = useState("no")

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