This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage in other components | |
import { PropsWithContext, withAppContext } from "./WithAppContext"; | |
export interface ISomeComponentProps extends PropsWithContext { | |
otherProp: string; | |
} | |
class SomeComponent extends Component<ISomeComponentProps> { | |
// or: can also extend Component<PropsWithContext> or extend Component<SomeProps & PropsWithContext> |