In a section of my code, I have the following problem:
I need to access the value of a li element:
const elements = element.map((element) =>
<li>{element}</li>
);
<ul>
<!--I need access to this value-->
{elements}
</ul>
example:
<li>mark</li>
value: mark