Electron webcontent envía datos a react no funciona

win.webContents.on('dom-ready', () => {
  let data = ...
  win.webContents.send('sending', data)
})
win.loadURL(...)
Restu Wahyu Saputra