Lightweight ecommerce state managment library
From the command line in your project directory, run yarn add @faststore/sdk
.
yarn add @faststore/sdk
import React, { Component } from 'react'
import { useUI } from '@faststore/sdk'
function MyComponent {
const { displayMinicart } = useUI()
if (displayMinicart) {
return <div>Minicart</div>
}
return null
}
For more information, please refer to our documentation: https://v1.faststore.dev/reference/sdk/faststore-sdk