This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { useFormik } from 'formik'; | |
| const validate = values => { | |
| const errors = {}; | |
| if (!values.firstName) { | |
| errors.firstName = 'Required'; | |
| } else if (values.firstName.length > 15) { | |
| errors.firstName = 'Must be 15 characters or less'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Blog de Desarrollo Web - Art铆culos, Tutoriales y M谩s</title> | |
| <meta name="description" content="Bienvenido a mi blog de desarrollo web donde encontrar谩s art铆culos, tutoriales y noticias sobre HTML, CSS, JavaScript y m谩s. Aprende a crear sitios web efectivos y optimizados."> | |
| <meta name="keywords" content="desarrollo web, HTML, CSS, JavaScript, tutoriales, art铆culos, SEO"> | |
| <meta name="author" content="Nombre del Autor"> | |
| <link rel="stylesheet" href="styles.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Canvas API Example</title> | |
| <style> | |
| canvas { | |
| border: 1px solid black; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Ejemplo de alcance l茅xico | |
| let a = "global"; | |
| function externa() { | |
| let b = "externa"; | |
| function interna() { | |
| let c = "interna"; | |
| //a = "cambio en interna" | |
| console.log(a, b, c); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //SCOPE LEXICOS vs ENTORNO LEXICO | |
| let a = "global"; | |
| function externa() { | |
| let b = "local"; | |
| function interna() { | |
| let c = "interna"; | |
| //a = "Se cambi贸 en el scope interno" | |
| console.log(a, b, c); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //脕mbito lexico | |
| let a = "global"; | |
| function externa() { | |
| let b = "externa"; | |
| function interna() { | |
| let c = "interna"; | |
| //a = "Cambio de a en interna"; | |
| console.log(c, b, a); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Sesi贸n 3</title> | |
| </head> | |
| <body> | |
| <h1>Sesi贸n 3: Tagged Templates</h1> | |
| <article id="ejemploTagged"></article> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Sesi贸n 3</title> | |
| </head> | |
| <body> | |
| <h1>Sesi贸n 3: Tagged template</h1> | |
| <article id="ejemplo1"></article> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const imagen1 = | |
| "https://www.tooltyp.com/wp-content/uploads/2014/10/1900x920-8-beneficios-de-usar-imagenes-en-nuestros-sitios-web.jpg"; | |
| export const imagen2 = | |
| "https://st.depositphotos.com/1016440/2534/i/450/depositphotos_25344733-stock-photo-sunrise-at-the-beach.jpg"; | |
| export const imagen3 = | |
| "https://ichef.bbci.co.uk/ace/ws/640/cpsprodpb/9db5/live/48fd9010-c1c1-11ee-9519-97453607d43e.jpg.webp"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Para implementar vite como Bundler | |
| $ npm create vite@latest my-module-app -- --template vanilla | |
| # Si necesitan instalar una versi贸n antigua de vite | |
| $ npm install vite@2.9.10 |
OlderNewer