Skip to content

Instantly share code, notes, and snippets.

@SamCode011
Forked from Klerith/seccion4-tarea-1.md
Created January 9, 2024 02:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamCode011/e2fd8ab2c09ae93867bd77fdc773be6f to your computer and use it in GitHub Desktop.
Save SamCode011/e2fd8ab2c09ae93867bd77fdc773be6f to your computer and use it in GitHub Desktop.

Tarea

  1. Crear un nuevo componente dentro de la carpeta SRC llamado CounterApp

  2. El CounterApp debe de ser un Functional Component

  3. El contenido del CounterApp debe de ser:

        <h1>CounterApp</h1>
        <h2> { value } </h2>
    
  4. Donde "value" es una propiedad enviada desde el padre hacia el componente CounterApp (Debe ser númerica validada con PropTypes)

  5. Reemplazar en el index.js ó main.jsx el componente de <PrimeraApp /> por el componente <CounterApp /> (no se olviden del value que debe de ser un número)

  6. Asegúrense de no tener errores ni warnings (Cualquier warning no usado, comentar el código)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment