I want to show only two data from array. datas are like this :
0: name:"jan" url:"https://www.pet/event/imain5/"
1: name:"willium" url:"https://www.pet/event/imain6/"
2: name:"petter" url:"https://www.pet/event/imain7/"
In my code now it shows all of the names from 0 to 2.
<div>
  {!!this.state.news.length && (
      {this.state.news.map(name => (
        <List.Item key={name.text}>
          <a href={name.url} target="_blank">
           {name.text}
            />
          </a>
          </List.Item>
      ))}
   )}
</div>
But I want to show first two name which will be form 0 and 1. but I dont understand how can I loop inside this map.
 
    