![javascript - Console.log() has a value but when I used it with map function it became undefined [ReactJS] - Stack Overflow javascript - Console.log() has a value but when I used it with map function it became undefined [ReactJS] - Stack Overflow](https://i.stack.imgur.com/SgXIx.png)
javascript - Console.log() has a value but when I used it with map function it became undefined [ReactJS] - Stack Overflow
![Why does my code cause an infinite loop and how do I fix this? (ReactJS)[SOLVED] - JavaScript - The freeCodeCamp Forum Why does my code cause an infinite loop and how do I fix this? (ReactJS)[SOLVED] - JavaScript - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/optimized/3X/d/b/dbee0e2f430197c3cd2ef3ce20f0c298976e4a80_2_690x403.png)
Why does my code cause an infinite loop and how do I fix this? (ReactJS)[SOLVED] - JavaScript - The freeCodeCamp Forum
![why does the console.log on handleClick() prints null in the first click and requried value on the second. It just seems to print the previous value held by 'details' state. Please help : why does the console.log on handleClick() prints null in the first click and requried value on the second. It just seems to print the previous value held by 'details' state. Please help :](https://preview.redd.it/why-does-the-on-handleclick-prints-null-in-the-first-click-v0-yhu0yxvycr2b1.png?width=640&crop=smart&auto=webp&s=c67013a9c79afa2a4cd57b8cb5fcbe33cbb54c43)
why does the console.log on handleClick() prints null in the first click and requried value on the second. It just seems to print the previous value held by 'details' state. Please help :
![google chrome devtools - How do you inspect a react element's props & state in the console? - Stack Overflow google chrome devtools - How do you inspect a react element's props & state in the console? - Stack Overflow](https://i.stack.imgur.com/HpmU9.png)
google chrome devtools - How do you inspect a react element's props & state in the console? - Stack Overflow
![reactjs - How do I see state when logging to the console instead of Proxy object inside reducer action? - Stack Overflow reactjs - How do I see state when logging to the console instead of Proxy object inside reducer action? - Stack Overflow](https://i.stack.imgur.com/bmqGs.png)
reactjs - How do I see state when logging to the console instead of Proxy object inside reducer action? - Stack Overflow
![javascript - Object property is undefined when i try to show it or console. log - React & Hooks - Stack Overflow javascript - Object property is undefined when i try to show it or console. log - React & Hooks - Stack Overflow](https://i.stack.imgur.com/4HhnG.png)
javascript - Object property is undefined when i try to show it or console. log - React & Hooks - Stack Overflow
![For some reason when I set the state of Picture, it throws an error stating that I am re-rendering too much. When I take out setPicture(...) though, the page renders completely fine. For some reason when I set the state of Picture, it throws an error stating that I am re-rendering too much. When I take out setPicture(...) though, the page renders completely fine.](https://preview.redd.it/b8ljnu3ynwq91.png?width=593&format=png&auto=webp&s=d38a04269de7f9452eba3eb3b8dc1b626426c144)
For some reason when I set the state of Picture, it throws an error stating that I am re-rendering too much. When I take out setPicture(...) though, the page renders completely fine.
![Where to Console Log in React JS | 6 Proper Ways to Console Log in React JS | Learn React JS - YouTube Where to Console Log in React JS | 6 Proper Ways to Console Log in React JS | Learn React JS - YouTube](https://i.ytimg.com/vi/zv8g_3mVthc/maxresdefault.jpg)