> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erixcel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hooks de React

Los siguientes Hooks pertenecen **exclusivamente a Erixcel React**.
No se mezclan con los validadores del otro plugin. Para instalarlos y activarlos, sigue la [guía de Erixcel React](https://docs.erixcel.com/ia/react).

## Hooks por evento (13)

### Antes de comenzar

Evento **`UserPromptSubmit`**: registra el estado inicial de los archivos al enviar tu mensaje.

> [card] [Detect Changes](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Registra el estado de `src/`, `package.json` y `.env` antes de editar.

### Al terminar

Evento **`Stop`**: revisa los archivos modificados cuando Codex termina.

> [card] [Main Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Revisa `main.tsx`, RouterProvider y carga de estilos.

> [card] [Style Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Solo `index.css` con Tailwind y tokens `@theme`; sin CSS propio adicional.

> [card] [API Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Exige únicamente `src/api/backend.api.ts` autogenerado.

> [card] [Component Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Comprueba componentes `simple/` y `complex/` y sus convenciones.

> [card] [React Hook Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Exige `*.hook.ts`: solo imports y funciones (AST de TypeScript).

> [card] [Service Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Exige `*.service.ts`: solo funciones, sin JSX ni React Hooks.

> [card] [Store Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Valida `*.store.ts`: rutas, nombres y ausencia de JSX o React Hooks (AST).

> [card] [Env Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Comprueba `.env` y `.env.example` sin exponer secretos.

> [card] [Function Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Validación de React + Vite.

> [card] [Page Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Validación de React + Vite.

> [card] [Interface Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Validación de React + Vite.

> [card] [Layout Validator](https://github.com/erixcel/documentation/blob/main/plugins/react-standards/hooks/hooks.json)
>
> Validación de React + Vite.

## Activación

Abre **Codex Desktop → Settings → Hooks**. Revisa los comandos de Erixcel React, pulsa **Trust** solo si confías en ellos y activa sus interruptores.
Los Hooks publicados en GitHub no reflejan si están activados en tu equipo.

## Sincronización

Este listado se genera desde el archivo de Hooks del plugin en GitHub; no desde los Hooks instalados localmente.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.