Skip to content

Commit 78fdd33

Browse files
committed
feat(04-zkapp-ui-with-react.mdx): section about Comlink.wrap
1 parent 9fc4fb7 commit 78fdd33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zkapps/tutorials/04-zkapp-ui-with-react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ The web worker client code resides in the `04-zkapp-browser-ui/ui/app/zkappWorke
257257
// Initialize the worker from the zkappWorker module
258258
const worker = new Worker(new URL('./zkappWorker.ts', import.meta.url), { type: 'module' });
259259
```
260-
- Create a proxy object `remoteApi` that provides typesafe access to the worker's API methods.
260+
- With `Comlink.wrap`, create a proxy object `remoteApi` that provides typesafe access the worker's API methods.
261261
262262
```ts
263263
// Wrap the worker with Comlink to enable direct method invocation

0 commit comments

Comments
 (0)