bentaylor2 / react-structured-data

React Structured Data provides an easy way to add structured data to your React apps
https://bentaylor2.github.io/react-structured-data/
MIT License
138 stars 27 forks source link

Possible from CSR #10

Open Hudsonzp opened 6 years ago

Hudsonzp commented 6 years ago

I've implemented this on a react application. Everything is working fine, but testing with google search tool doesn't actually show any scripts. I've determined that this is likely because my frontend is client side rendered instead of server side. Is it possible to use this with a CSR style app or must it be server side. I imagine google is getting a bit smarter about checking sites with Javascript, but doesn't seem like this tool tests for that yet?

tstirrat15 commented 5 years ago

@Hudsonzp are you testing based on inspecting source? Inspecting source only shows you what's come from the server, so you won't see any of the JSON-LD stuff if you go and plug that into Google's testing tool.

If you're plugging in your URL and it's coming up with nothing, I'm not sure what's going on there.