Reactjs fetch data from API and google SEO problem

0 votes

My website create with ReactJS and all data get from API

This is fetch code:

fetch('myApiUrl').then(response => response.json()).then(jsonData => {
    this.setState({
        title: jsonData.title
    })
})

And this is render code:

render() {
    return (<h1>{this.state.title}</h1>)
}

So, if user open the website, title show to user but if google crawl the website, title not showing to google.

How can I fix this problem and get data from api and google can read it?

Mar 4 in Digital Marketing by Kichu
• 16,850 points
24 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Digital Marketing

0 votes
1 answer
0 votes
0 answers

Dublin Core and Google SEO

What do you think, is Google using ...READ MORE

Mar 4 in Digital Marketing by Kichu
• 16,850 points
31 views
0 votes
0 answers

Can't we SEO Mern Stack Applications and reactjs Applications?

I created a MERN Stack Application which ...READ MORE

Mar 13 in Digital Marketing by Kichu
• 16,850 points
64 views
0 votes
1 answer

AngularJS & Google Data Highlighter

https://support.google.com/webmasters/answer/2692911?hl=en just go through this and you ...READ MORE

answered Mar 1 in Digital Marketing by narikkadan
• 7,860 points
23 views
0 votes
1 answer

Yoast SEO: remove og:description and twitter:description

add_filter("wpseo_opengraph_desc", "remove_yoast_og"); add_filter("wpseo_twitter_description", "remove_yoast_og"); function remove_yoast_og($description) { ...READ MORE

answered Mar 1 in Digital Marketing by narikkadan
• 7,860 points
20 views
0 votes
1 answer

How to over-ride meta data in Wordpress, using Squirrly SEO

if (is_archive()){ add_filter('sq_title', 'filter_product_wpseo_metadesc'); function filter_product_wpseo_metadesc($wpseo_metadesc){ ...READ MORE

answered Mar 1 in Digital Marketing by narikkadan
• 7,860 points
37 views
0 votes
1 answer

Next JS Seo with static pages, SSR Pages and Client Side rendering

Use getStaticProps()  with a revalidate property because sites ...READ MORE

answered Feb 20 in Others by narikkadan
• 7,860 points
149 views
0 votes
1 answer

How to use next-seo for setting nextjs meta tag with multiple OGP images?

https://github.com/garmeeh/next-seo use this git repo that contains ...READ MORE

answered Feb 24 in Others by narikkadan
• 7,860 points
80 views
0 votes
1 answer

Next JS Seo with static pages, SSR Pages and Client Side rendering

use getStaticProps() with the revalidate property that ...READ MORE

answered Feb 25 in Others by narikkadan
• 7,860 points
25 views
0 votes
1 answer

Facebook debugger does not pick up Next.js next-seo meta tags

It's a common pattern to have a ...READ MORE

answered Feb 26 in Others by narikkadan
• 7,860 points
763 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP