-
Notifications
You must be signed in to change notification settings - Fork 1
DynamicComponent
Gaetan Almela edited this page Oct 18, 2020
·
1 revision
DynamicComponent
is a HOC used in creating 2-phase components.
Prop | Required | Type | Default | Description |
---|---|---|---|---|
displayComponent | ✓ | Component | The component to render when in display mode. | |
editComponent | ✓ | Component | The component to render when in edit mode. | |
displayProps | Object | Any props passed to displayComponent
|
||
editProps | Object | Any props passed to editComponent
|
||
mode | null | 'display' | 'edit' | The default mode of the component. If not defined, the component will not render |