In a pure functional component using typescript how do we render an array of strings into an unordered list?
import React from 'react';
const Drinks: React.FC = () => {
const myArray = ['Water', 'Orange Juice', 'Milk'];
return (
<ul>
<li>Water<li/>
<li>Orange Juice<li/>
<li>Milk<li/>
</ul>
);
}
export { Drinks };