This package contains the inferfaces that you must implement to create a connector for React Storefront. Connectors allow developers to easily create a React Storefront front-end for popular ecommerce platforms such as Magento.
A connector package explorts an implementation of Connector as it's default export.
Connector
method represents an API called made by a typical React Storefront application.Result
, which contains both app and page level data. App data is used to populate the main menu, navigation tabs, etc..., while page data is used to render the main body the specific page being viewed (product data, category data, etc...)._includeAppData=1
query parameter. The react-storefront
package provides fulfillAPIRequest method to help you return app data only during server-side rendering. You can see it in use in react-storefront-magento2-connector
in the withAppData higher-order function, which is used connector methods like product.react-storefront-connector
, but the default React Storefront starter app won't make use of them. Developers will need to add functionality to the app to take advantage of additional methods in the connector.For a reference implementation see react-storefront-magento2-connector.
Generated using TypeDoc