@faststore-b2b/sdk
v3.0.141
Published
Hooks for creating your next component library
Downloads
23
Readme
Installation
From the command line in your project directory, run yarn add @faststore-b2b/sdk
.
yarn add @faststore-b2b/sdk
Usage
import React, { Component } from 'react'
import { useUI } from '@faststore-b2b/sdk'
function MyComponent {
const { displayMinicart } = useUI()
if (displayMinicart) {
return <div>Minicart</div>
}
return null
}
Docs
For more information, please refer to our documentation: https://v1.faststore.dev/reference/sdk/faststore-sdk