Skip to content

Commit 05c71cf

Browse files
committed
demo: add Run button ot the kitchen-sink demo
1 parent a29bd5e commit 05c71cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

demos/kitchen-sink/src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function App() {
1212
const isConnected = () => console.log(lnc.isConnected);
1313
const isReady = () => console.log(lnc.isReady);
1414
const load = () => lnc.preload();
15+
const run = () => lnc.run();
1516
const connect = () => lnc.connect();
1617
const disconnect = () => lnc.disconnect();
1718

@@ -85,6 +86,7 @@ function App() {
8586
<button onClick={() => isReady()}>isReady</button>
8687
<button onClick={() => isConnected()}>isConnected</button>
8788
<button onClick={() => load()}>Load</button>
89+
<button onClick={() => run()}>Run</button>
8890
<button onClick={() => connect()}>Connect</button>
8991
<button onClick={() => disconnect()}>Disconnect</button>
9092
<h1>LND</h1>

0 commit comments

Comments
 (0)