DEV Community

Discussion on: Simulate single page app using CSS selector (:target)

Collapse
 
mrdanielschwarz profile image
Daniel Schwarz

It's bad for SEO and it's also a lot of code for something that the browser already offers. What's the point?

Collapse
 
_faridjunior profile image
mohamed farid • Edited

use hash in the URl to style,
build Demo with a few lines of code.

it is a way and you can use it in the right position

Collapse
 
mrdanielschwarz profile image
Daniel Schwarz

What's a good scenario to use it? I can't think of any positives, only negatives.

Thread Thread
 
matjones profile image
Mat Jones

Yeah it also means you have to send fully hydrated renders for every page in the entire app for it to work properly