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

69
Visualizações
React library using default MUI theme instead of custom theme injected in parent react app

Current Behavior 😯

I have a React library which uses mui theme(custom). It is used in a react app which injects the theme using theme provider but the library is using the default MUI Theme instead of the custom theme.

Expected Behavior 🤔

It should use the custom theme provided in the react app instead of the mui default theme.

Steps to Reproduce 🕹

Steps:

  1. Create a library which uses custom theme.
  2. Inject the theme in your react app.
  3. Check if it is using the same theme.

Context 🔦

Trying to build a library which inherits the theme from the parent react app.

My Environment 🌎

 npx: installed 2 in 9.464s

  System:
    OS: Windows 10 10.0.19043
  Binaries:
    Node: 14.17.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
  Browser:
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.84)
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