I want use react+webpack+electron to build a desktop app.How can I inject fs module into react so that I can use it to read native files? I have a component such as
fs
use window.require() instead of require().
window.require()
require()
const fs = window.require('fs');