It would be a lot cleaner to export a NodeGroup component that accepts functions for deriving the starting state and rendering. Clears up some conceptual issues with passing a "node" component and reduces the total lines needed to code a transition group. Just much cleaner.
It would be a lot cleaner to export a NodeGroup component that accepts functions for deriving the starting state and rendering. Clears up some conceptual issues with passing a "node" component and reduces the total lines needed to code a transition group. Just much cleaner.
Would look like this...