@vtex/store-sdk
A simple, framework agnostic implementation of Commerce APIs to help you create you next React-based store with world class performance in record time
Install
yarn add @vtex/store-sdk
Usage
import React from 'react'
import type { FC } from 'react'
import { useHook } from '@vtex/store-sdk'
const MyStoreComponent: FC = () => {
const props = useHook()
return <MyComponent props>Hello Commerce</MyComponent>
}
Analytics
The analytics data layer is based on the official GA4 specification.
License
MIT © VTEX