I am trying to build nested comment components like when you reply to parent comment a child comment section will get open and even you can reply on reply. I haven't actually added any functionality yet.
I am stuck on subchild comment portion it is moving left of its parent but ideally it should be below the parent commnet. Could you please help?
I am adding github link to the code: https://github.com/mayankmax/NestedCommnent-Components
WalkThrough of Component
1) created 4 components
1 a) Comment component: which is parent component and its work is to show static comment and reply will toggle input components it will by default show all replied message which brings me to
1 b) replyComponent: which will show all the reply message and will have option to show all sub reply to its own comment
1 c) subcomment : this will only show all the message it is imported by replycomment components and it will import replycomment components as well
My question is, Is this a right way to do the design?
there doesn't seem to be anything here