I have problem with connect NeDB to my react-electron app. Now I install NeDB on my project and connect him to electron.js
file.
const Datastore = require('nedb');
let db = {};
db.students = new Datastore({
filename:'./students.json',
autoload: true
})
db.students.insert({name : "Putin V.V.", year: 1952});
Now I need connect this db to my app.js file. How I can manipulate with this file on render part?