akiran / akiran/react-slick

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

オープン
#1,622 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。