reactjs - React slick is showing single item for first time -


i'm using react-slick slider, it's showing 1 item first time, if resize window it's showing items.

please me.

this code :

let settings = {     dots: true,     infinite: true,     speed: 500,     slidestoshow: 5,     slidestoscroll: 1, };   <slider {...settings}>     {         (this.props.makes.data) ?         (_.map(this.props.makes.data, (make, index) => {                 return (                     <div key={index}>                         <a onclick={(e) => this.handleclick(e)}>                             <img src={base_url+make.make_image} alt={make.make} classname={this.state.active === number(make.id) ? "activeimage" : ''} id={make.id}/>                         </a>                     </div>                 );             }))         : ''     }         </slider> 

thank you.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -