What is the error you are receiving? If you look in the dev tools console, you may see some extra information. Please copy/paste the console contents here
I used the {this.state.ip_address} as the jsx expression instead to get the ip address you got but i was getting the “…” the three dots at this.state = {
ip_address : ‘’…"
}
Pls Sir why am i getting the Three dots instead of the Ip address?
Pls Sir my code and yours seems the same why mine not working fine?
Pls help me am still a newbie in react.
Your book is the first react book am reading, pls help me out.
The reason is that the ipinfo.io URL that I have currently specified in the book has gotten too many requests from localhost The solution is to replace the URL with: https://ipinfo.io/json?token=2277ce4bac0347
My guess is that the destination variable isn’t pointing to a DOM element. Do you have the querySelector call appropriately referencing the correct element?
I went through the same problem and got stuck for a couple of weeks until I had the idea of checking this forum and find this solution.
Thanks very much to both of you for this.