Skip to content

Conversation

chimalm1
Copy link
Member

@chimalm1 chimalm1 commented Aug 29, 2025

  • Created readmes for initial explanatory react concepts in codesandbox. Also created sandboxes for react concepts here in JS and react basic app here.
  • Created vite boiler plate with react 19 and typescript.
  • Created example for use hook, for async states ./react-hooks/18-use-promise.
  • Updated example of react context with latest API updates.
  • Updated react to version 19 in all react folders (in progress).
  • Updated bundler from webpack to vite in all react folders (in progress).

@chimalm1 chimalm1 marked this pull request as draft August 29, 2025 13:56
@chimalm1 chimalm1 changed the title refactor/react 19 - Vite - master XVIII DO NOT MERGE - ongoing MR to update all react examples Sep 2, 2025
setRandomNumber(Math.random());
console.log(randomNumber);
}, 3000);
+ },[])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+   React.useEffect(()=>{
+     setTimeout(() => {
+       setRandomNumber(Math.random());
+       console.log(randomNumber);
+     }, 3000);
+   },[])

setRandomNumber(Math.random());
console.log(randomNumber);
}, 3000);
+ },[])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+   React.useEffect(()=>{
+     setTimeout(() => {
+       setRandomNumber(Math.random());
+       console.log(randomNumber);
+     }, 3000);
+   },[])


# Paso a paso

- Antes que nada nos instalamos todos los paquetes necesarios del boiler plate ejecutando _npm install_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boilerplate




Boiler plate extracted from _02-base/02-vite-react_.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants