Skip to content

Instantly share code, notes, and snippets.

@hchocobar
Last active January 28, 2023 10:06
Show Gist options
  • Save hchocobar/94d1c6606a4cde08a8f39ea607c8ee46 to your computer and use it in GitHub Desktop.
Save hchocobar/94d1c6606a4cde08a8f39ea607c8ee46 to your computer and use it in GitHub Desktop.
React - 01 - Estructura Inicial

React - 01 - ReactDOM, Components, import / export

index.html

Todo comienza en nuestro archivo index.html

Screenshot from 2022-11-29 11-32-23

En este archivo lo importante es el código de la línea 11. Allí tenemos dentro de nuestro <body> un <div>cuyo id es "app".

index.js

Screenshot from 2022-11-29 11-34-46

home.jsx

Screenshot from 2022-11-29 11-36-41

Componentes

Screenshot from 2022-11-29 11-53-14

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