How to manage state in a tree component in reactjs

后端 未结 3 804
孤城傲影
孤城傲影 2021-02-02 14:37

I\'ve been struggling this for a couple of days, trying to figure out the \"react\" way to do it.

Basically, I have a tree, a list of lists (of lists ...) that can be ar

3条回答
  •  长发绾君心
    2021-02-02 15:24

    Here is a quick example of how to create a treeview using React and Flux. http://www.syntaxsuccess.com/viewarticle/5510d81be1ce52d00e93da55

    The React component is recursive and state is managed using Flux.

提交回复
热议问题