Implement TreeView component with React library.
The component should render options list in the tree view. The tree view is given by the data structure mentioned below.
- The component should be named as
TreeView
. - The component should have next properties:
data
andindent
. Thedata
property is used to accept the data and theindent
property for accepting the number of spaces beforename
of item in its category.