I'm new to Electron and wondering how to get data from a form to main.js ( main file that launches Electron ). The snippet from my index.html file is below:
<form id="creds">
<h3 class="username">Username</h3>
<input id="username" class="form-control text-input" placeholder="Username">
<input type="submit" value="Submit">
</form>
I read about ipcMain and ipcRenderer but I'm unable to figure out what code to use to get the data from index.html after I hit the Submit button