Solid MotionOne, how to animate presence in list (using For)
I'm trying to animate additions/removals of a list, but am running into problems.
I have this code:
I would expect this to render two list items ('a' and 'b'), but it only renders 'a'. Why does this happen and how can I fix this?
I have created a codesandbox here: https://codesandbox.io/p/devbox/motion-one-list-help-xftq5z?file=%2Fsrc%2FTest.tsx%3A1%2C1-22%2C1
2 Replies