我需要传递相同组件的值
我需要在这里传递我的价值
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ul class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
</ul>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="../../assets/img/gaming.jpg" alt="gaming" width="100%" height="500">
</div>
...
</div>
<a class="carousel-control-prev" href="#myCarousel" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#myCarousel" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
</div>
这是我的代码
<tr>
<td><b>Past</b></td>
<td className="hrs_applicant_data"><b>tes</b></td>
</tr>
答案 0 :(得分:0)
体验是正确的值列表,因此您可以通过地图功能显示这些值。我将在下面给出一个示例
this.state.experience = [{{name:“ anu”,age:“ 21”,email:“ anu@gmail.com”},{name:“ sai”,age:“ 21”,email:“ sai@gmail.com“}]
render(){
return(
this.state.experience.map((user,index)=>{
return <p key={index}>{user.name} </p>
})
)
}