React function not using current state when button clicked – Reactjs
I am creating a form in React that uses dynamically added fieldsets for contacts that I am adding through using state. These fieldsets have a button to remove the fieldset if the user wishes to. However when I click the…