You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -108,10 +108,7 @@ export default () => (
108
108
)
109
109
```
110
110
111
-
This is possible because `Swiper` used `cloneElement` and inject internally the `activeIndex` and `index` props to each slide.
112
-
113
-
> `keys` are automatically set for each child of `Swiper` (when injecting props), if `activeIndex - index` is `0`, it will set the key to `-1`.
114
-
> **This will cause the new active slide to rerender**
111
+
This is possible because `Swiper` used `cloneElement` and inject internally the `activeIndex` and `index` props to each slide. This also means that all slides will re-render on swipe, since the `activeIndex` prop value changes on swipe.
0 commit comments