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, 2022 in Digital Marketing by Kichu
• 19,040 points
571 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

Facebook Graph API SEO Comments and Profanity Filter

actually there is no way  to be ...READ MORE

answered Mar 1, 2022 in Digital Marketing by narikkadan
• 63,600 points
1,039 views
0 votes
0 answers

Dublin Core and Google SEO

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

Mar 4, 2022 in Digital Marketing by Kichu
• 19,040 points
453 views
0 votes
1 answer
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, 2022 in Digital Marketing by narikkadan
• 63,600 points
1,003 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, 2022 in Digital Marketing by narikkadan
• 63,600 points
721 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, 2022 in Digital Marketing by narikkadan
• 63,600 points
875 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, 2022 in Others by narikkadan
• 63,600 points
1,519 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, 2022 in Others by narikkadan
• 63,600 points
6,175 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, 2022 in Others by narikkadan
• 63,600 points
957 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, 2022 in Others by narikkadan
• 63,600 points
5,336 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP