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
React object does not render after hosting in firebase

Actually I am beginner in React. I have a hosted url. Say for instance("https://www.google.com/"). Actual hosted url which I have used is made with Flutter web technology. I need this to be rendered within my React project. So I have done as below

class WebContent extends React.Component {

  constructor(props) {
    super(props);
    this.state = { height: props.height };
  }

  componentWillMount() {
    this.setState({ height: window.innerHeight - 5 + 'px' });
  }

  render() {
    return (
      <object data="https://www.google.com/" width="100%" height={this.state.height}>
      </object>
    );
  }
}

ReactDOM.render(
  <WebContent />,
  document.getElementById('root')
);

So while running the application, I could able to see the rendered content. Till this no issues.

But when I have hosted my React project in Firebase. I cannot see the rendered content. The page is empty white screen. Title of the tab could be seen but not the content. Am I missing anything or doing any mistake. Any help would be appreciated :(

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