Demonstrating React Router 4's SSR awesomeness
by jaredpalmerJavaScript
Last 12 weeks · 0 commits
1 of 6 standards met
Repository: jaredpalmer/react-router-nextjs-like-data-fetching. Description: Demonstrating React Router 4's SSR awesomeness Stars: 87, Forks: 11. Primary language: JavaScript. Languages: JavaScript (96.3%), CSS (3.7%). Homepage: https://my-razzle-app-vheonerfmj.now.sh/ Topics: react, react-router, ssr. Open PRs: 1, open issues: 1. Last activity: 6y ago. Community health: 28%. Top contributors: jaredpalmer.
Hi, I realized that there is a problem when we open & it gets rendered by our server. it seems that method of the page is also called during the SSR. when I looked for where the problem is coming from, I saw that the function is used incorrectly according to the documentation: https://github.com/ReactTraining/react-router/blob/620ff29f65deef6aa6a65e65f46af16c914d735c/packages/react-router/docs/api/matchPath.md
Hi, I'm trying your approach but I'm using razzle with react-router-4 so I have a routing file like this: So not sure how I would do the server bit: https://github.com/jaredpalmer/react-router-nextjs-like-data-fetching/blob/master/src/server.js#L21 Is that even possible? Thanks!