scrimba
Learn React Router
Actions
Setting up the Action function
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Setting up the Action function
AboutCommentsNotes
Setting up the Action function
Expand for more info
Login.jsx
run
preview
console
import React from "react"
import { useNavigate, Form } from "react-router-dom"

export default function Login() {
return (
<Form>
<input
type="email"
name="email"
placeholder="Email address"
/>
<br />
<input
type="password"
name="password"
placeholder="Password"
/>
<br />
<button>Log in</button>
</Form>
)
}
Console
/login
-4:28