Skip to content

Can we use this library with react-router as well? #4

Answered by AlemTuzlak
MAST1999 asked this question in Q&A
Discussion options

You must be logged in to vote

@MAST1999 First of all thank you for the question. I just created discussions for this package and transfered your issue. To answer your question, here is the following information for you to understand how this can work with the react-router and some caveats that I plan to actually fix in the future.
As you might already know react-router introduced their new createBrowserRouter which is probably why you ask this question.

How it works

Before I answer this let me explain how this package works:

  • It imports 2 dependencies from @remix-run/react, mainly the two being useSubmit and useActionData. Both of these are re-exported from react-router-dom, which means that this package is technicall…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@triemstr
Comment options

@depoulo
Comment options

@AlemTuzlak
Comment options

@depoulo
Comment options

@AlemTuzlak
Comment options

Answer selected by MAST1999
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #2 on May 28, 2023 19:33.