Skip to content

Commit e76e4ad

Browse files
authored
Update README.md
Added a missing return statement to the example code
1 parent 6cbdc0b commit e76e4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import { Session, Chatbox } from "@talkjs/react";
6868
function ChatComponent() {
6969
const syncUser = useCallback(
7070
() =>
71-
new Talk.User({
71+
return new Talk.User({
7272
id: "nina",
7373
name: "Nina",
7474
email: "nina@example.com",

0 commit comments

Comments
 (0)