Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
I can't decide between React-Router or Next JS
Post Body

Hello guys.

I started learning React few months ago. I do it during my personal time and I have stop few times then catch up again. Anyway, the first time I did my website I used React Router because it was the first thing it popped on google. I used it to route the links to another component. I did not used clean urls or things like that. I was just starting so I had no idea what was the best.

Anyway, I saw a post about Next JS in this sub reddit and decided to dig in to it. I did learn basic of Next Js with Express Js and I liked it. However, I am in a point of not knowing what is the best for my problem and I think I can't understand the difference. My problem is that i have 404 errors and my back arrow in the browser doesn't work. I do understand if I dig more in to react-router I will be able to fix this. But what is the best solution?

I know and understand that Next JS is SSR and React-Router is not SSR but can implement SSR,.

One thing I read in the basics of Next JS is that it recommends using <style jsx> over CSS files. One thing I like the CSS files is because is so much clean, clear modularity and read-able. What you guys think about that?

I hope you guys can help me out to understand a little bit more. Thank you.

EDIT: I found out about next-css module, but what you guys think?

Author
User Disabled
Account Strength
0%
Disabled 1 year ago
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
216
Link Karma
61
Comment Karma
140
Profile updated: 3 hours ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago