I'm trying to print out the command line arguments in a React Component.
NPM docs say I can using..
console.log(process.argv);
However, this doesn't print anything.
Array(0)
Above is what it prints in console. I'm calling my program with ...
npm start
where start is npm electron . ok
Can yargs print the command line arguments in a react component? Should I be trying to use yargs? I can't find any documentation on how to do it with just react. I know electron can only print it out in the main.js and the remote process will not work in a react component.