'How to show a modal(1) when user click buttons(4button with 1modal)
When I click add button I want to show input in React. The problem is add buttons are multiple. Do I need to give id manually?
my li component
<div className="content-children">
{props.showmodal ? (input modal) : (add btn)
}
</div>
my ul component
<ul>
<Lists
setshowmodal={setshowmodal}
showmodal ={showmodal}
/>
<Lists
setshowmodal={setshowmodal}
showmodal ={showmodal}
/>
</ul>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
