Tell us about your environment:
- Software/Script version: create-react-app
- Platform / OS version: linux 64 bit
- URLs (if applicable): Nai.
What steps will reproduce the problem?
Please include code that reproduces the issue.
- < h1 >{this.state.githubData.name}</ h1 >
- this.state = this.state.githubData.bind(this)
What is the expected result? Print My gthub profile name using github api.
What happens instead?
- when i add "< h1 >{this.state.githubData.name}</ h1 >" this line its gives me an error "this.state.githubData.name is undefined".
- when i open react dev tool. there is a option called state. and there store all my github data story. but it doesent print using state.
Internet Search Result:
- I copy this line "this.state is undefined" and search google they tell me to bind this.state
- when i bind this.state like this "this.state = this.state.githubData.bind(this);" then i got an new error "TypeError: _this.state.githubDada is undefined".
Github Repository: https://github.com/Jobayer-Ahmed/ReactGithubAPI
Still having same problem vai. I can convert the json data into an object and console log them but i can't grub any single element using dot notation or array notation....
![Check the code.](https://user-images.githubusercontent.com/30123930/32983582-13ed6144-ccc1-11e7-9c6f-2138934c7c2c.png)
![Check The error.](https://user-images.githubusercontent.com/30123930/32983594-4637489a-ccc1-11e7-8b9b-a20d3a93638c.png)
![Youtube ScreenShot](https://user-images.githubusercontent.com/30123930/32983604-6962e374-ccc1-11e7-83d1-9d271d26d712.png)
this is the code.
and this is output
And here is another screenshot taken from youtube video
@entrptaher