@Ahmed-Elbald
Posted
Hi Ekure, So I think your solution is great. But I think u can optimize a little bit.
-
The user should have the option of replying to another reply (not just comments). So this should actually be a comment tree like in Facebook for instance. If u don't know how to do that, read a little bit about something called "recursion" or u can see my solution here.
-
When the user edits a comment/reply, the (@userName) gets added automatically and that's good. But, when they do that again, ur solution adds it twice and so on and so forth. So I guess this is a downside u can work around a little.
Marked as helpful
@louis-bamidele
Posted
@Ahmed-Elbald you should reset your input field after the user add new content