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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -