The question was how to render nested folder structure. On click of the folder, API will be called which will return you its children then based on the response you have to show/render the files/folders.
Sigiloso
Used recursion to handle to rendering part.