Share:
interface Props {
comment: INewPostCommentResponse;
children?: ReactNode;
commentLikeBusy?: boolean;
onLikePress?: (comment: INewPostCommentResponse) => void;
onDeleteClick?: (comment: INewPostCommentResponse) => void;
onReplySubmit?: (data: { content: string; repliedTo: string }) => void;
onCommentUpdate?: (data: editedComment) => void;
}While Python is a popular tool that you can use to code on the backend, there are a few tools you can explore to try it on the front end as well. You can use Brython, Transcrypt, and Pyjs to write JavaScript-powered web applications entirely in Python.
You can use other strategies to combine Python code and JavaScript in the same application. The most straightforward is by communicating via a simple, open standard like JSON.
This post is written by fsniraj. fsniraj is an full stack JavaScript developer. You can find him on twitter @fsniraj