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

250
Visualizações
AppBar with material-ui with makeStyles,but the error is with the "render" method that I don't have,or some import or export that is syntatically ok

I'm making an app bar with material-ui and I'm receiving in the console at least 3 times the same error

    Uncaught Error: Element type is invalid: expected a string (for built-in components) or 
    a class/function (for composite components) but got: undefined. You likely forgot to 
    export your component from the file it's defined in, or you might have mixed up default 
    and named imports.

    Check the render method of `Barra`.
    at createFiberFromTypeAndProps (react-dom.development.js:25053)
    at createFiberFromElement (react-dom.development.js:25081)
    at reconcileSingleElement (react-dom.development.js:14052)
    at reconcileChildFibers (react-dom.development.js:14112)
    at reconcileChildren (react-dom.development.js:16990)
    at updateHostComponent (react-dom.development.js:17632)
    at beginWork (react-dom.development.js:19080)
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994)
    at invokeGuardedCallback (react-dom.development.js:4056)```

The AppBar code is very simple,that's why I'm so confused with it :


import React from 'react'
import {AppBar,ToolBar,Typography} from '@material-ui/core'
import {makeStyles} from '@material-ui/core/styles'
const useStyles=makeStyles({
    titulo:{
        background:'linear-gradient(45deg,#5BD452,#204F24)',
        border:0,
        borderRadius:15,
        color:'white'
    }
})

const Barra =()=>{
  
 const estilos=useStyles()
    return(
        <AppBar>
          <ToolBar>
            <Typography className={estilos.titulo}>
              Jacaranda
            </Typography>
          </ToolBar>
        </AppBar>
    )
}
export default Barra

I have an idea because I'm trying to make a change in my code structure changing where the router would be,but I think that doesn't have any sense at all

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