Category : reactjs

Im using a React´s hook to stablish a value according with wich button has been clicked, but the setBotonPresionado doesnt update the value, the console log shows that, the value is empty wich is the initial value const [desactivarComprar, setDesactivarComprar] = useState(true); const [desactivarPrimerBoton, setDesactivarPrimerBoton] = useState(false); const [desactivarSegundoBoton, setDesactivarSegundoBoton] = useState(false); const [desactivarTercerBoton, setDesactivarTercerBoton] ..

Read more

I am working on an e-commerce mobile application with Node.JS backend and React-Native front end. I have an auth state called isLogged. Also a material-bottom-tab navigator for navigating between screens. In order to use different navigators in a specific tab(in my case to use account tab for both AccountScreen and LoginScreen) inside my tab navigator ..

Read more

Part 2 of wanting to absolutely die while learning React/TS. So I’m in some code that looks like this. Basically I’ve tried in 3 different ways to set a variable. Closure. It doesn’t work. This is really a remarkable feat of engineering to break JS basics like this. Literally every single line of code is ..

Read more