initial stompClient integration
This commit is contained in:
parent
49e7eacb0b
commit
81226dcaf3
4 changed files with 26 additions and 15 deletions
13
src/Chat/Message.tsx
Normal file
13
src/Chat/Message.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
import React from "react";
|
||||
|
||||
export const Message = (
|
||||
{
|
||||
sender, text,
|
||||
}: {
|
||||
sender: string;
|
||||
text: string;
|
||||
}
|
||||
): React.ReactElement<{ sender: string; text: string; }> => {
|
||||
|
||||
return (<p>Message from {sender}: {text}</p>);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue