{disabled: !this.canSubmit(), onclick: this.login}, &quot;Login&quot;),
        ])
    }
}
</code></pre>
<p>Normally, in the context of a larger application, a login component like the one above exists alongside components for user registration and password recovery. Imagine that we want to be able to prepopulate the email field when navigating from the login screen to the registration or password recovery screens (or vice versa), so that the user doesn&#39;t need to re-type their email if they happened to 