From 9e302fc54a310b1b10f720db7df6fe84054cd3b0 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 6 Mar 2024 02:06:13 +0100 Subject: [PATCH] Example jsdoc --- client-solid/src/Components/NewComment.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client-solid/src/Components/NewComment.tsx b/client-solid/src/Components/NewComment.tsx index 5d64272..ccfea2c 100644 --- a/client-solid/src/Components/NewComment.tsx +++ b/client-solid/src/Components/NewComment.tsx @@ -4,6 +4,11 @@ import { JSXElement, Show, createSignal, onMount, useContext } from "solid-js"; import { LoginContext } from "../Context/GlobalState"; import { NewComment, createComment } from "../Util/api"; +/** NewCommentInputArea is a component that allows users to submit a comment on a **post or comment**. + * @param {Object} props The properties for the NewCommentInputArea component. + * @param {number} props.parentPostId The id of the post that the comment is a reply to. + * @returns {JSXElement} A JSXElement that contains a textarea and a submit button. + */ export function NewCommentInputArea({ parentPostId, }: {