JSPM

  • Created
  • Published
  • 0
  • Score
    100M100P100Q32850F
  • License MIT

Slice react hooks

Package Exports

  • @slicekit/react

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@slicekit/react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Slice react-ui

Installation

npm install @slicekit/react-ui

Usage

import React from 'react';
import { Checkout } from '@slicekit/react-ui';
// import styles
import "@slicekit/react-ui/dist/style.css"
import "@rainbow-me/rainbowkit/styles.css"

const cart = /* ... */;

export const ExampleUsage = () => {
  return (
    <>
      <WagmiConfig config={wagmiConfig}>
        <SliceProvider chains={chains} initCart={cart}>
          <div>
            <div>
              <ConnectBlock />
            </div>
            <Checkout />
          </div>
        </SliceProvider>
      </WagmiConfig>
    </>
  )
}

export default ExampleUsage;