Skip to main content

Migrating from react-complex-tree

Headless Tree is the official successor of React-Complex-Tree. Migration might not be straight-forward, since React Complex Tree did most of the rendering out of the box, whereas Headless Tree expects you to write the DOM rendering yourself. However, Headless Tree is much more flexible, which means you will likely find an easy solution to most aspects of how you did things in RCT.

Feature parity

Headless Tree has full feature parity to React Complex Tree except for the following features:

  • Keyboard-based drag and drop is not yet supported (planned, coming soon)

Benefits of Headless Tree

  • Headless Tree is compatible with virtualization libraries
  • Much better performance with large trees, supporting several 100k visible items in virtualized trees
  • The rendered DOM is easier to customize since you manage it yourself
  • Headless Tree is more flexible and easier to expand
  • Hotkeys can not just be remapped, but also customized in their implementation, and you can define your additional hotkeys
  • Mostly Framework agnostic, support for more frameworks is planned

Main Differences