From 53b54eb076246ffeb6c5c4e8b52a643696195333 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 5 Feb 2023 16:23:21 -0500 Subject: Implement recursive commenting and sorting by number of likes --- demo/components/chat.js | 6 ++-- demo/components/comment.js | 71 ++++++++++++++++++++++++++++++++++++++++++ demo/components/like-button.js | 4 +-- 3 files changed, 76 insertions(+), 5 deletions(-) create mode 100644 demo/components/comment.js diff --git a/demo/components/chat.js b/demo/components/chat.js index 2d68ee0..bffde26 100644 --- a/demo/components/chat.js +++ b/demo/components/chat.js @@ -1,9 +1,9 @@ import { Name } from './name.js' -import LikeButton from './like-button.js' +import Comments from './comment.js' export default { - components: { Name, LikeButton }, + components: { Name, Comments }, data: ()=> ({ message: '', @@ -42,7 +42,7 @@ export default { : {{ object.message }} - +