You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to setup routes? Is it best to do something like next.js or just go with react router to start off?
Answer
ReasonReactRouter
Using either Next.js or React Router should be fine in Reason if that's what you need.
ReasonReact ships with a minimal, built-in and very powerful router called ReasonReactRouter. It's implemented using hooks in React, leverages the power of pattern matching, and is really easy to get started with. Read more about it here.
Go ahead and try it first before reaching for other solutions. It's very powerful and ergonomic to work with once you get the hang of it. It's also easy to build your own abstractions on top of when needed.
The text was updated successfully, but these errors were encountered:
Question
How to setup routes? Is it best to do something like next.js or just go with react router to start off?
Answer
ReasonReactRouter
Using either Next.js or React Router should be fine in Reason if that's what you need.
ReasonReact ships with a minimal, built-in and very powerful router called
ReasonReactRouter
. It's implemented using hooks in React, leverages the power of pattern matching, and is really easy to get started with. Read more about it here.Go ahead and try it first before reaching for other solutions. It's very powerful and ergonomic to work with once you get the hang of it. It's also easy to build your own abstractions on top of when needed.
The text was updated successfully, but these errors were encountered: