Skip to content

Instantly share code, notes, and snippets.

View SoyRol4ndo's full-sized avatar

Rolando Llanes SoyRol4ndo

View GitHub Profile
@Klerith
Klerith / testing-configuration.md
Last active December 30, 2025 14:33
Configuración de Vitest + React Testing Library
@Klerith
Klerith / chat.interface.ts
Created March 11, 2025 17:54
Este es un archivo con información ficticia que simula un backend con latencia.
export enum Plan {
BASIC = 'basic',
PRO = 'pro',
PREMIUM = 'premium',
ENTERPRISE = 'enterprise',
}
export interface Client {
id: string; // C1-12345
name: string;
@Klerith
Klerith / useForm.tsx
Last active September 29, 2023 22:35
Hook para el manejo de formularios
import { useState } from 'react';
export const useForm = <T extends Object>( initState: T ) => {
const [state, setState] = useState( initState );
const onChange = ( value: string, field: keyof T ) => {
setState({
...state,
[field]: value