@tonar/react
v0.3.1
Published
@tonar/react: Tonar entry for React applications with React components, hooks, and general utilities.
Downloads
406
Readme
@tonar/react
@tonar/react 是 Tonar 面向 React 项目的使用入口,适合在 React 应用中使用 Tonar 的 React 能力和通用工具函数。
@tonar/react is the Tonar entry for React applications, designed for using Tonar's React features and general utilities in React projects.
- ✅ 支持 React 18+
- ✅ TypeScript 类型支持
- ✅ 仅支持 ESM(不支持 CommonJS)
- ✅ 支持 Tree-shaking
📦 Installation / 安装
npm install @tonar/react@latest
pnpm add @tonar/react
yarn add @tonar/react🚀 Usage / 使用方法
import { Carousel, debounce, useDistinctState } from '@tonar/react';📚 Related documentation / 相关文档
具体能力列表请查看真正提供能力的子包 README:
- React 组件和 Hooks:
@tonar/react-kit - 通用工具函数:
@tonar/utils
📝 License / 许可证
MIT © Sonion
欢迎 Pull Requests 和 Issues
源码仓库:https://github.com/sonion028/gonar
