未验证 提交 feb10f45 编写于 作者: P Paul van Dyk 提交者: GitHub

Update with-magic example (#19207)

fixes the event argument inside the function call
- argument is `e` but `event` was used instead
上级 43e75612
......@@ -12,7 +12,7 @@ const Login = () => {
const [errorMsg, setErrorMsg] = useState('')
async function handleSubmit(e) {
event.preventDefault()
e.preventDefault()
if (errorMsg) setErrorMsg('')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册