Open ankan1811 opened 3 years ago
const onSubmit = () => { setCommentValue('') }
yes You have to create state and then fill the input of comment box as <input value={comment} onChange={(event)=>{setcomment(event.target.value)}/> and then you have to create a submit button like this <button onClick={()=>{Submit()}}>Post and now you can define the 'Submit()' function as const Submit = ()=>{ setcomment('') }
Fixed in pull request 46
Check this issue. The comment line must be empty after commenting.