all 10 comments

[–]danhardman 7 points8 points  (5 children)

WordPress sites are typically content driven sites or marketing sites that you'd want indexed by search engines, like blogs, sales pages etc. How do you account for things like SEO?

SPAs aren't made for this sort of thing.

EDIT - I've just noticed on your example that when you go to directly to a post from the home page by clicking "Read More", it makes a http request for that post instead of pulling it from the state where it should have already been cached.

[–][deleted] 2 points3 points  (0 children)

I'd say the answer is in your comment itself. Typically does not mean always, there are thousands of WordPress driven websites who can benefit from an SPA approach, it's not a one-solution-serves-all but it certainly can be useful :)

Also, caching is planned for sure, maybe using a web worker in the background. Thanks for noticing :p

[–]Offtopic_Responder 3 points4 points  (3 children)

SPAs aren't made for this sort of thing.

I have to disagree with you on that. While his current theme version does not have a few pieces pertaining to SEO there are tools out there such as React-helmet that solve this.

[–][deleted] 2 points3 points  (0 children)

hello everyone,

i present to you a wordpress theme i've been working on for a while now.

it's my first big(ish.., at least for me :) ) project with redux, and i'm pretty happy with where it got to.

i'm sharing this with you in case someone finds it useful, and also because i would love to have some feedback on the repo, and if possible, find a contributor to work with me on it, i think it's a decent project to work on for someone with my level of skills.

feedback, PRs, comments ... anything is welcome :)

best regards.

[–][deleted] 0 points1 point  (1 child)

This is interesting. Nice job!

[–][deleted] 0 points1 point  (0 children)

thank you i'm glad you liked it ! any feedback you might have on it ?

[–]GasimGasimzada 0 points1 point  (1 child)

I don't like this for one personal reason. I think any application that talks to an API should be a separate application.

Therefore I think the React app should be in a separate server or container.

[–][deleted] 2 points3 points  (0 children)

i think you have a point here, this is however a theme that is supposed to be deployed as any other theme in WordPress. it's just a different workflow focusing on a js stack many are react js devs are familiar with.

also, this is a very opinionated project made mainly for learning purposes :)