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

164
Visualizações
Feather icons not displaying in react-data-table-component column

I have using react-data-table-component in my Reactjs application. In my custom column I am using anchor tags as buttons and is using feather-icons for that. The problem is that the icons are not showing. Sometimes it shows when I click any other link on the page. I am initiating the feather icon inside useEffect hook. How can I fix this?

const columns = [
    {
      name: 'S/N',
      selector: row => row.u_id,
    },
    {
      name: 'Username',
      selector: row => row.username,
    },
    {
      name: 'Action',
      cell: row => <><a href="javascript:void(0)" onClick={(e) => getUser(e, row.u_id)}><span data-feather="edit"></span></a><a href="javascript:void(0)" onClick={(e) => deleteUser(e, row.u_id)}><span data-feather="trash"></span></a></>
    },
  ];

useEffect(() => {
    feather.replace()
  }, []);


<DataTable
              columns={columns}
              data={users}
              pagination
            />
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