Skip to content

Instantly share code, notes, and snippets.

View H-ROD-10's full-sized avatar

Hector Rodriguez H-ROD-10

View GitHub Profile
@Klerith
Klerith / recomendada.Dockerfile
Last active November 26, 2023 20:03
NextJS - Dockerfile - Configuración simple y recomendada
# Fuente: https://github.com/vercel/next.js/blob/canary/examples/with-docker/README.md
# Install dependencies only when needed
FROM node:16-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
@Klerith
Klerith / init-rn.md
Created March 3, 2021 20:56
Comando para crear aplicación de React Native con TypeScript

Comando para crear un proyecto de RN con TS

npx react-native init AwesomeTSProject --template react-native-template-typescript
@edgarjaviertec
edgarjaviertec / Login.js
Created May 29, 2020 23:20
Validar un formulario en React usando el hook de estado y la librería Yup
import React, {useState} from "react";
import * as Yup from "yup";
import InvalidFeedback from "../Components/InvalidFeedback";
export default function Login({login}) {
const [formValues, setFormValues] = useState({
'username': '',
'password': '',
});
const [touched, setTouched] = useState([]);