• Render a hidden input with the name csrf and the authenticity token as value.

    Parameters

    Returns Element

    // Default usage
    return (
    <Form action="/login" method="post">
    <AuthenticityTokenInput />
    <input name="email" type="email" />
    <input name="password" type="password" />
    <button type="submit">Login</button>
    </Form>
    );
    // Customizing the name
    <AuthenticityTokenInput name="authenticity_token" />