-1
rated 0 times
[
1]
[
2]
/ answers: 1 / hits: 7356
/ 5 Years ago, thu, april 4, 2019, 12:00:00
I am facing the following problem, where the React Slick slider is not displaying my slides inside the map function. Tried multiple things, but keep getting empty values.
When i hardcode divs it works, but when i try to create them dynamic even when the exist the don't show up.
Can someone help?
My code:
<Slider {...settings}>
{this.props.home.fetched &&
this.props.home.content.map(value => {
return value.acf.slider_extends.map((value, index) => {
return (
<div>
<h1>{value.project_titel}</h1>
<p>{value.project_intro}</p>
<span>{value.video_project}</span>
</div>
);
});
})}
</Slider>
More From » reactjs