**Intro** -
I'm trying to show `JSON` data in a `Accordion`. So I used `react-sanfona` ([github](https://github.com/daviferreira/react-sanfona)) to build that. I'm trying to call `getComponent` function `recursively` so that I can check if it is an `array` or `object` if it is array I'm calling same function. better show you the pogress so far.

**Problem** - I'm getting `[object Object]` at the second level even I call the `getComponent` `recursively`

[Edit on codesandbox](https://codesandbox.io/s/exciting-noether-e9i1c?file=/src/styles.css)