Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

411
Visualizações
The code of the component is unreachable although is getting the dynamic route param

Hi people 🙂 I am doing a project with React + JS and I have installed wouter and I am trying to make my app working with a dynamic params in the route. That means: if I go to "/gif/panda" that it will render the gifs of pandas. However, although I have been several hours researching, I dont know what happens. As you can see in console, the "/gif/:keyword/", I mean, the keyword is received by the component List of Gifs, as it returns the phrase "Hola Panda". Panda was the keyword. But I dont know why the return code of the component is unreacheable and, therefore, the app crashes. Any idea? Thanks.

enter image description here enter image description here enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You must put JSX code into brackets on return statement.(in ListofGifs component) Since there is no brackets your function returns nothing. If you look carefully you can see that the code after return statement is pale which means it just doesn't work. I added image below. I hope it solves problem.

add brackets

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda