Sr. Software Engineer, Open-source, Writer. Creator at https://youtube.com/antonybudianto
Hi, I didnt get the include all URL part, can you give example?
Yes, it is to keep it simple enough for article.
You can add additional assertion as needed
Due to some complex changes and some test breaks, I removed them for now, will add them when I have time.
Hi, you can take a look at https://github.com/antonybudianto/antonybudianto-web
I don’t use Redux though, but you can follow https://antonybudianto.github.io/cra-universal/docs/integrate-redux.html
From pure trying it out :)
So in short you cannot do
You will get warning by doing this, only one kind of Router should wrap your App.
Yes you can just install it, but I’ve not tried React loadable in a long time (I used loadable-components).
For context API support, you can check https://github.com/facebook/react/issues/13138#issuecomment-401850584
Maybe you wrap your tested component with Router, Router usually should be on your index.js , the error you get is because you have defined Router inside a Router.
I also develop the CLI for create-react-app + ssr, so I usually read around the similar article so I can learn others’ pattern/implementation.
Looking forward for your next post!
Nice, I think this is how it should be since the pattern can be used for Server-side rendering too, which requires StaticRouter on server.
I’ll update the article soon, thanks!