How to pass an onClick to parent in React

后端 未结 0 371
谎友^
谎友^ 2021-02-04 07:12

I have a React component called beercard which populates an item for me and adds a like button, here\'s the Beercard file:

function Beercard(props) {
  const [act         


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