This is a tree folder built with ImmutableJS and React.
The underlying data structure is a Immutable.List containing nested Maps and Lists
By using immutability we can check if components need to be updated using shouldComponentUpdate
Currently the tree nodes do not contain their respective paths. Instead the immutable data structure is traversed every time we toggle a node
- Clone the repo
- npm install
- npm start
View the demo here