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

118
Visualizações
how to import a react 3rd party library into the project (the library uses module.exports but in react we use import syntax)

how to import a react 3rd party library into the project (the library uses module.exports but in react we use import syntax)

Library which i want to use inside my react project is mentioned below : -

  1. https://www.npmjs.com/package/systeminformation
  2. https://www.npmjs.com/package/os

Can i please get some help !!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Libraries are transpiled so you can easily use them.

just install them with npm install

and then import/require it

const si = require('systeminformation');

// promises style - new since version 3
si.cpu()
  .then(data => console.log(data))
  .catch(error => console.error(error));

all is here in readme https://github.com/sebhildebrandt/systeminformation

about 4 years ago · Juan Pablo Isaza Relatório
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