@arqel-dev/react
v0.11.0
Published
React + Inertia bindings, providers, and utilities for Arqel.
Downloads
1,619
Maintainers
Readme
@arqel-dev/react
React + Inertia bindings, providers, and utilities for Arqel.
Status
🚧 Pre-alpha — REACT-001..004 entregues.
Install
pnpm add @arqel-dev/react @arqel-dev/types
pnpm add @inertiajs/react react react-domUsage
// resources/js/app.tsx
import { createArqelApp } from '@arqel-dev/react/inertia';
const userPages = import.meta.glob('./Pages/**/*.tsx');
createArqelApp({
appName: 'Acme Admin',
pages: userPages,
});// Inside any component
import { usePanel, useTheme } from '@arqel-dev/react';
import { useTranslator, route } from '@arqel-dev/react/utils';
const panel = usePanel();
const { theme, toggle } = useTheme();Convenções
- Subpath imports preferidos:
@arqel-dev/react/inertia,@arqel-dev/react/providers,@arqel-dev/react/context,@arqel-dev/react/utils peerDependenciespara React 19 + Inertia 2 (não bundla)- SSR-safe: hydrateRoot quando há markup, createRoot caso contrário
Links
- Documentação — em construção
- PLANNING — tickets
REACT-*
