📅  最后修改于: 2022-03-11 15:02:16.438000             🧑  作者: Mango
var links = [
{ endpoint: '/america' },
{ endpoint: '/canada' },
{ endpoint: '/norway' },
{ endpoint: '/bahamas' }
];
class Navigation extends React.Component {
render() {
const listItems = links.map((link) =>
{link.endpoint}
);
return (
{listItems}
);
}