{"version":"1.0","type":"rich","title":"useState","description":"A React counter demonstrates the `useState` hook for managing numeric state, with buttons that increment and decrement a displayed number. The code uses functional updates to avoid stale closures and shows how initial state can be provided either directly or lazily via a function, logging console messages to illustrate when each initialization runs. Rendering uses `ReactDOM.render` into a root div, with the interface styled by large CSS font sizes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/24d864dff921414d9ded67752dc2b1a4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}