{"version":"1.0","type":"rich","title":"Context","description":"This example demonstrates the React Context API for sharing a user name across components. It shows a large, centered text message (\"Joe\") rendered by a `UserProfile` component, which consumes the context value. The code defines a `UserContext` with `Provider` and `Consumer` exports, and uses `UserProvider` to supply the value. The rendering relies on React's `createContext` and `useContext` hooks, with the `UserConsumer` passing the context to a paragraph element. The tight coupling between `App.js` and `User.js` overrides the provider value, resulting in the displayed name.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2aa7d297146f48dc800665648e47b874?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}