Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Slick slider map not showing slides?

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>
like image 372
WDP Avatar asked Mar 09 '26 19:03

WDP


1 Answers

If the containing div or section of Slick has the property flex, than it can cause pictures to disappear.

like image 78
István Zsigovics Avatar answered Mar 12 '26 10:03

István Zsigovics



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!