{"version":"1.0","type":"rich","title":"React SVG element monkeypatch","description":"This example demonstrates a React technique for rendering SVG filter effects, specifically Gaussian blur, by patching React’s SVG property configuration. It shows how to enable support for the `mask`, `filter`, and `stdDeviation` attributes, which React’s default DOM property whitelist omits. The code imports ReactDOM, ReactElement, and SVGDOMPropertyConfig from React’s internal libraries, then marks these properties as `MUST_USE_ATTRIBUTE`. It also creates custom React factories for the `<filter>` and `<feGaussianBlur>` SVG elements, allowing them to be used as JSX components. The patch runs conditionally based on development mode, using `ReactElementValidator.createFactory` in development and `ReactElement.createFactory` in production.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-80eaa63762ea499029f0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}