1000ship / react-scroll-motion

🎞 Easy to make scroll animation
https://1000ship.github.io/react-scroll-motion
MIT License
422 stars 47 forks source link

Warning: Each child in a list should have a unique "key" prop. #32

Closed ItamarCohen2826 closed 2 years ago

ItamarCohen2826 commented 2 years ago

Just using react-scroll-motion as shown in the examples, and I get the following error:

Warning: Each child in a list should have a unique "key" prop.

Check the render method of ScrollContainer. See https://reactjs.org/link/warning-keys for more information.

It points to this line of code: var _a = props.snap, snap = _a === void 0 ? "none" : _a, children = props.children, _scrollParent = props.scrollParent; Any ideas why this happens?

I don't see it in other projects but I'm using nextJS but disabled SSR