javascript - ReactJS: drag and drop between multiple lists -
i'm newbie in reactjs. i'm having component similar this:
<section/> <lesson/> <lesson/> <lesson/> <section/> <lesson/> <lesson/> <section/> <lesson/> <lesson/> <lesson/>
how can drag , drop lesson among these sections? found library this: https://github.com/bevacqua/react-dragula, i'm little bit confused of ref
section reactdom
i looked @ dragula example. using react's feature called ref callback attribute.
from documentation:
react supports special attribute can attach component. ref attribute can callback function, , callback executed after component mounted. referenced component passed in parameter, , callback function may use component immediately, or save reference future use (or both).
Comments
Post a Comment