Skip to content

How do you avoid rendering first tree nodeΒ #68

Open
@chrisrzhou

Description

@chrisrzhou

Thank you so much for this wonderful library! I'm getting this to work really well for my use-case. I have one problem to ask:

Currently, tree requires an initial first node with children e.g.

rootFolder
  fileA.js
  fileB.js
  folderA
    fileC.js

I want to be able to just render the flat entries (excluding rootFolder)

fileA.js
fileB.js
folderA
  fileC.js

Here is my codesandbox.io: https://codesandbox.io/s/j35ynz58q9.

I tried to play around with data.js but I could not get it to work well for me. Please let me know what I have to do to get this working. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions