Skip to content

How to handle multiple forms on one page? #250

Answered by edmundhung
janhesters asked this question in Q&A
Discussion options

You must be logged in to vote

You can check these 2 approaches I shared on #37 with one using action with a custom search and the other uses a hidden input. You will need to call useForm hook for each form as demonstrated in the codesandbox.

However, for your example with social login, it would be more common to setup an action for each social login you want to support. You can find some examples from remix-auth-socials. Feel free to ask on the Remix discord if you need further assistance. :)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@janhesters
Comment options

@janhesters
Comment options

@edmundhung
Comment options

@janhesters
Comment options

Answer selected by janhesters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #249 on July 31, 2023 16:44.