Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up routes? #1

Open
zth opened this issue Feb 12, 2020 · 0 comments
Open

Setting up routes? #1

zth opened this issue Feb 12, 2020 · 0 comments
Labels
Publish Add this label to an issue in order for it to be published on the blog React

Comments

@zth
Copy link
Owner

zth commented Feb 12, 2020

Question

@michael_rispoli on Twitter asked the following 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.

@zth zth added Publish Add this label to an issue in order for it to be published on the blog React labels Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Publish Add this label to an issue in order for it to be published on the blog React
Projects
None yet
Development

No branches or pull requests

1 participant