interface DebugOptions {
log: LogDebugOptions;
other: OtherDebugOptions;
}
const DebugContext = createDebugContext<DebugOptions>(true);
const DebuggableOther = withDebugProps(Other, DebutContext, "log", "other");
This would result in both the properties from log options and other options being applied to the component. This would be helpful in cases like logging where I want to option to apply across multiple components.
This would result in both the properties from log options and other options being applied to the component. This would be helpful in cases like logging where I want to option to apply across multiple components.