Created
October 8, 2020 16:01
-
-
Save adityapatnaik/5728126ae1095b5383a611d33e5b571d to your computer and use it in GitHub Desktop.
Synchronous Reply:App.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button onClick={()=>{ | |
console.log('sync',ipcRenderer.sendSync('anything-synchronous', 'ping')) | |
// prints "sync pong" | |
}}> | |
Sync | |
</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment