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 : -
Can i please get some help !!
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