Skip to content

Where do you put providers for custom client-side hooks in framework mode? #13697

Answered by sergiodxa
GabenGar asked this question in Q&A
Discussion options

You must be logged in to vote

I would try to put them in root, unless I need to access the context in that file, in which case I would use app/entry.client.tsx and app/entry.server.tsx files.

If you don't have those files in your project, use npx react-router reveal to get them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GabenGar
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