- Preparing search index...
- The search index is not available
@dopt/react
- withDopt<T>(Component: ComponentType<T>, identifier: string): { displayName: string; (props: Omit<T, keyof WithDoptProps>): Element }
Alpha
Parameters
-
Component: ComponentType<T>
-
identifier: string
Returns { displayName: string; (props: Omit<T, keyof WithDoptProps>): Element }
-
- (props: Omit<T, keyof WithDoptProps>): Element
-
Parameters
-
props: Omit<T, keyof WithDoptProps>
Returns Element
-
displayName: string
A React HOC for accessing a Journey's Model Block State and methods corresponding to an intent-based API for maniuplating said state.
Example
Returns
ComponentWidthDopt - the original component with block and methods props injected in