Sunday, 7 May 2017

react-router: SEO, page links and using window

I'm building a SPA using react-router and having trouble running this on a public facing server.

Concerns

  1. Need the ability to load links like example.com/about
  2. SEO is important to me thus using HashHistory is not ideal.
  3. Need to be able to use window in javascript.

Solutions Tried

  1. Hosting the output of npm run build doesn't work well for concerns 1 & 2 above.
  2. Setting up express using app.use(express.static('public')) also has similar issues.


via Anshul Koka

No comments:

Post a Comment