Answer the question
In order to leave comments, you need to log in
React render Link or?
There are 3 tabs in the React application, tab 1, tab 2, tab 3. What is the catch, there is a code, a little unified for example
const links = {
[
{name: '1', url: 'some url1'},
{name: '2', url: 'some url2'},
{name: '3', url: 'some url3'},
],
};
links.map(({name, url}) => {
return (
<Link
key={name}
to={url}
>
<span>{name}</span>
</Link>
);
})
<Link to="some url1">1</Link>
<a href="some url2">2</Link>
<Link to="some url3">3</Link>
<a href="some url1">1</Link>
<Link to="some url2">2</Link>
<a href="some url3">3</Link>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question