akiran / akiran/react-slick

Is it possible to have one component in react-slick that renders children?

Ouverte
#1,622 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
11.9k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hello, not sure if I am framing this correctly, but I have not been able to find a solution through github or SO.

Right now I have something like
```
(this.carousel = c)}>

```

inside of CardsContainer is
```
{dataSet.map((data, index) => (

))}
```

this is being renders like so inside of Carousel:
```
const childrenWithProps = React.Children.map(this.props.children, child =>
React.cloneElement(child, {props})
);

return {childrenWithProps};
```

is it possible with this setup to not render all of the Cards into one slide only? I saw exampels of CustomSlides but they have not been working for me.

Thanks! I am pretty new to posting in issues so let me know if I should reformat.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.