How to avoid re-render infinite loop from event listener (React)

前端 未结 0 803
悲哀的现实
悲哀的现实 2021-01-18 04:25

I have the following functional component:

export default function Nav({photo}) {
    const [isOpen, setIsOpen] = useState(false)

    const [width, setWidth]         


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