How To Create A Tree Component With React Hooks

Hi everyone! Today we’re going to create a simple expandable tree component with react hooks! Enjoy!

Different Ways To Create A Tree

Before diving into coding let’s discuss the way we’re going to create our tree.

I know atleast two ways of doing that. The first one is creating an actual tree structure where…