How do i send a useState function that is in a component into another component?

后端 未结 0 1760
-上瘾入骨i
-上瘾入骨i 2021-02-08 15:08

In my App.js file i have a useState that i set into the ListContainer and Cart Component

const [listCart, addListCart] = useState([]);
    return(
        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题