I have a unique situation in React/Next. Essentially, I am iterating in React to create divs. The iterating functionality works beautifully. I now am trying to create hide/show sections for each one of the created divs and I want to use the anchor tag to allow the hiding and showing of hidden divs. I followed [this][1] thread for the hiding element and [this][2] link for concatenating function names. However, I do not think the second link is applicable to concatenate function names in React as it says that showDogFunctions is not a function which is evidently not a good error. Can anyone help? Additionally, if anyone has more concise ways to achieve my functionality that would also be appreciated.
**Error**
Variable Names are a bit dif but you can easily associate.
[![Error][3]][3]
[1]: https://stackoverflow.com/questions/24502898/show-or-hide-element-in-react
[2]: https://stackoverflow.com/questions/23263601/concatenation-function-name-in-js
[3]: https://i.stack.imgur.com/zUoxr.png