A container that initialize amp state to be consumed by child components. Components that support AMP functionality like QuantitySelector and TapPanel must be inside an AmpState element.
import AmpState from 'react-storefront/amp/AmpState'
Name | Type | Default | Description |
---|---|---|---|
initialState | object | {} | The initial values for the amp-state. Defaults to |
id | string | 'moovAmpState' | An id for the root amp state object. Defaults to "moovAmpState". |