@TKSHII
Posted
Hey 🙂 For framer motion you have to import { Reorder } from "framer-motion"
Then you create a <Reorder.Group> (its a ul html tag) This Reorder.Group want 3 required params with the value, the axis, and the onReorder one where you put your setState function of your array of data.
Then inside the Reorder.Group you need to put the Reorder.Item (it's an li) with 3 required params I dont remember what it is.
Then it should work :) I did it on mine, go check it out if you need to.
Marked as helpful
@Raul-code1
Posted
@TKSHII Hey :D , i try that but in my case I used redux toolkit and I didn't know what type of function I had to create and put in the third parameter (order ={ setSate }), I tried in different ways and I didn't get it :(
@TKSHII
Posted
@Raul-code1 I dont know how to use Redux. Can you explain me your problem with more precision ? I used hook for this, did u used class based components ?