-
-
Save parzibyte/6ed5e45190a0e6f93441ea1cf0abc760 to your computer and use it in GitHub Desktop.
This file contains 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
async componentDidMount() { | |
const respuesta = await fetch(`${Constantes.RUTA_API}/obtener_videojuegos.php`); | |
const videojuegos = await respuesta.json(); | |
this.setState({ | |
videojuegos: videojuegos, | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment