Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react): Allow SwiperSlide children as long as displayName includ…
…es SwiperSlide (#5954) Refactor getChildren to return all child components whose names contains SwiperSlide to allow for custom components in Swiper that do not have a displayName of SwiperSlide. Adds helper function isChildSwiperSlide(child) to check if react child is a child which contains SwiperSlide in its displayName.
- Loading branch information