Skip to content

Commit bbbb358

Browse files
committed
Update README
1 parent 09d7286 commit bbbb358

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ export default () => (
108108
)
109109
```
110110

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.
115112

116113
---
117114

0 commit comments

Comments
 (0)