Created
December 12, 2019 19:26
-
-
Save codigoconjuan/01def0b0f14fa70e47448b4284fc4217 to your computer and use it in GitHub Desktop.
Gist para Noticias
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
<title>Buscador Noticias React</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> | |
<link href="https://fonts.googleapis.com/css?family=Raleway:700,900" rel="stylesheet"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lo correcto seria utilizar logical AND operator
noticias && noticias.map(noticia=>( ))
Y mas alla de eso se deberia capturar el error de la API para que estemos informados en todo momento del status del request