Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3ca5202

Browse files
committed
solution: working message form input
1 parent1c248ff commit3ca5202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/components/MessageForm/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { MAX_MESSAGE_TEXT_LENGTH } from "../../config";
77
import"./styles.css";
88

99
exportconstMessageForm=({ user})=>{
10-
lettext="";
10+
const[text,setText]=React.useState("");
1111

1212
consthandleChange=event=>{
1313
event.preventDefault();
1414
constupdatedText=event.target.value;
15-
text=updatedText;// TODO: update text on change
15+
setText(updatedText);
1616
};
1717

1818
return(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp