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

134
Visualizações
Manually create React SSR Dom attributes

I use kramdown and katex in rails on the server to pre-process math and markdown in comments, articles etc from the DB into HTML. However, I'd like some of the elements produced to behave as react components (eg replacing some a tags with react-router links etc)..

Based on the description of React.renderToString() it sounds like I could annotate the HTML I produce to have the appropriate attributes and then use hydrate to turn them into full react nodes.

Is this possible? If so where do I find a reference for what attributes I need to add to turn a standard HTML tag into a hydratable react components?

Or am I going about this entirely the wrong way?

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