This is currently how my code looks
import React from 'react';
import './App.css';
class App extends React.Component {
state = {
apiData: []
}
render() {
console.log('api data is')
return (
<div>
<center>
<h1 id="title">hello something</h1></center>
<h1 id="date">{this.state.apiData.title}</h1>
</div>
)
}
componentDidMount() {
fetch('http://www.mocky.io/v2/5dece3d333000052002b9037')
.then(response => response.json())
.then(data => {
this.setState({
apiData: data
})
})
console.log("component fetched data")
}
}
export default App
I get this error when I try access something that has a value but when I do this
<h1 id="date">{this.state.apiData.date}</h1>
It works
not too sure how to fix as everything I have seen thus far is for data they have created through a const or let as opposed to fetching data from an API
buy silagra online
Incredible points. Outstanding arguments. Keep up the good spirit.
She will get $127 million before taxes if a lump-sum payment is chosen, or $188,000 split into annuity payments over the next
29 years.
My web page: Click for source
Great blog you have here but I was curious about if you knew of any message boards that cover the same
topics discussed here? I’d really love to be a part of online community where I can get responses from
other knowledgeable people that share the same interest.
If you have any suggestions, please let me know.
Thanks a lot!
Hi there i am kavin, its my first time to commenting anywhere, when i read
this piece of writing i thought i could also create comment due to this good article.
I’m truly enjoying the design and layout of your blog. It’s a
very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a developer to create your theme?
Fantastic work!
You need to take part in a contest for one of the most useful websites on the net.
I most certainly will recommend this site!
As the admin of this site is working, no question very rapidly it will be famous, due
to its quality contents.
That is very fascinating, You’re an excessively professional blogger.
I have joined your feed and sit up for in search of more of your fantastic post.
Additionally, I have shared your web site in my social networks
I was able to find good information from your blog
posts.
Hi there! I could have sworn I’ve been to this blog before but after checking
through some of the post I realized it’s new to me. Nonetheless, I’m definitely happy I found it and I’ll be bookmarking and checking back often!
Do you have a spam issue on this website; I also am a blogger, and I was wanting to know your situation; many of us have developed some nice practices
and we are looking to exchange techniques with others, be
sure to shoot me an e-mail if interested.
Pretty nice post. I just stumbled upon your blog and wished to say that I have
really enjoyed surfing around your blog posts. After all I’ll
be subscribing to your feed and I hope you write again very soon!
Hello to every body, it’s my first visit of this web site; this weblog includes remarkable and actually
good data in favor of readers.
After going over a handful of the articles on your site, I truly like your technique
of writing a blog. I book-marked it to my bookmark website list and will be checking back in the near future.
Take a look at my web site too and let me know what you think.
Very soon this website will be famous amid all blog users,
due to it’s pleasant articles
What’s up, just wanted to tell you, I loved this article.
It was funny. Keep on posting!
It is the best time to make some plans for the
future and it is time to be happy. I have read this post and if I could
I wish to suggest you some interesting things or tips.
Maybe you can write next articles referring to this article.
I want to read even more things about it!
Fastidious response in return of this issue with real
arguments and explaining everything concerning that.
Hello There. I found your blog using msn. This is a very
well written article. I’ll be sure to bookmark it and
come back to read more of your useful info. Thanks
for the post. I will definitely return.
Article writing is also a fun, if you be acquainted with afterward you can write
otherwise it is complex to write.
Hmm it seems like your blog ate my first comment (it was super
long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying
your blog. I as well am an aspiring blog blogger but I’m still
new to the whole thing. Do you have any points for
rookie blog writers? I’d definitely appreciate it.
Attractive element of content. I simply stumbled upon your weblog and in accession capital to say that I acquire actually loved account your blog
posts. Any way I’ll be subscribing to your augment and
even I fulfillment you get admission to consistently quickly.
Now I am going to do my breakfast, after having my breakfast coming yet again to read further news.
Wow, amazing weblog layout! How lengthy have you ever been blogging for?
you made running a blog glance easy. The overall
glance of your website is magnificent, as smartly as the content material!
Every weekend i used to visit this web page, as i wish for enjoyment,
for the reason that this this web site conations in fact fastidious
funny information too.