I’m building an eCommerce site with Laravel backend.
I can use ReactJs for the view but an SPA is not SEO friendly.
Will using ReactJs in a multipage setup (as described here) solve the SEO issue,
or should I just proceed with good ol’ Jquery?
I’m building an eCommerce site with Laravel backend.
I can use ReactJs for the view but an SPA is not SEO friendly.
Will using ReactJs in a multipage setup (as described here) solve the SEO issue,
or should I just proceed with good ol’ Jquery?
3
Answers
I would recommend using
react
overjQuery
. You can usereact-router
to take care of routing and even do server side rendering using something like next.js. That will take care of SEO stuff.react
is much more powerful thanjQuery
in that it allows you usestate
and have logic within the component. Also since it does not do direct DOM manipulation it’s much faster.This one explains it very. Worth the read.
If the concern is SEO then you could control the User Friendly URL form Route and Custom Route Group.
However, I heard (May be from jeffrey way) Laravel works better with Vue.js and You could always use Laravel Mix there.
But all recommendation depends on your capability, usability and Project scope.
Definitely recommend Next.js! It is a production-ready framework built on top of React.With Next.js You can create 100% SEO-friendly app with SPA-like routing.
jQuery is a library for querying DOM and definitely not considered the right tool for creating large apps nowadays.
With jQuery you would end up writing a ton of code, reinventing the wheel and with a codebase, no one would like to join present times.