+
Your Dashboard
+ {/* Other dashboard components */}
+
+ {/* Render a child component based on the result */}
+ {showNewAnalytics ? (
+
+ ) : (
+
+ )}
+
+ );
+}
+```
+
+```javascript
+// These child components don't know about feature flags—they just render props
+// The new component just focuses on rendering its UI
+export function NewAnalyticsSection({ data }) {
+ return (
+