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

122
Visualizações
What is the meaning of the given construct in React/Javascript

I came across the below construct in one of my react components written by someone and it got me intrigued.

const [activeStep, setActiveStep] = React.useState('text1')
const [a,b,c,d]=(()=>(
{
'text1': [text2, text3, text4, ['text5']]
}[activeStep]))()

This might be a naive question but I did not know how to search for this on internet without knowing the name of this construct. Apologies if this is a duplicate question because I tried searching using the construct directly without the text but nothing showed up. Appreciate your help in advance. Cheers!

about 4 years ago · Juan Pablo Isaza
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