mirror of
https://github.com/amark/gun.git
synced 2025-06-05 21:56:51 +00:00
Merge pull request #906 from jussiry/patch-1
react todo example: fixes input clear on submit
This commit is contained in:
commit
2f34d8cb4e
@ -26,7 +26,7 @@
|
||||
<form onSubmit={e => {
|
||||
e.preventDefault();
|
||||
gun.get("todos").set({ title: newTodo.current.value });
|
||||
ref.current.value = ''
|
||||
newTodo.current.value = ''
|
||||
}}>
|
||||
<input ref={newTodo} placeholder="new todo"/>
|
||||
</form>
|
||||
|
Loading…
x
Reference in New Issue
Block a user