react-toolkits
TypeScript icon, indicating that this package has built-in type declarations

2.13.5 • Public • Published

React Toolkits

Installation

pnpm install react-toolkits

Usage

import 'react-toolkits/style.css'
import { createRoot } from 'react-dom/client'
import { ReactToolkitsProvider } from 'react-toolkits'
import type { NavMenuItem } from "react-toolkits";

const container = document.getElementById('root') as HTMLElement
const root = createRoot(container)

const items: NavMenuItem[] = []

root.render(
  <ContextProvider title="React Web" menuItems={items}>
    <RouterProvider
      router={router}
      fallbackElement={
        <Spin
          style={{
            display: 'flex',
            justifyContent: 'center',
            alignItems: 'center',
            width: '100vw',
            height: '100vh',
          }}
        />
      }
    />
  </ContextProvider>,
)

Readme

Keywords

none

Package Sidebar

Install

npm i react-toolkits

Weekly Downloads

423

Version

2.13.5

License

MIT

Unpacked Size

544 kB

Total Files

30

Last publish

Collaborators

  • chaos1ee