Skip to content

Commit

Permalink
feat(04-zkapp-ui-with-react.mdx): add description of comlink and inst…
Browse files Browse the repository at this point in the history
…allation instructions
  • Loading branch information
ymekuria committed Sep 27, 2024
1 parent e7e2da5 commit 5c11cbc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/zkapps/tutorials/04-zkapp-ui-with-react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,18 @@ Start by deleting the default `page.tsx` file that comes with a new project so t
```sh
$ rm app/page.tsx
```
### Install UI dependencies

This tutorial uses the `comlink` package to integrate web workers into the React application. Comlink simplifies
communication between the main thread and web workers by abstracting the postMessage API, allowing you to call functions in the worker as if they were local.

In the `04-zkapp-browser-ui/ui` directory, install `comlink` by running the following command:

```sh
$ npm install comlink
```

This example uses to comlink package for seamless integration of webworkers
## Build the default contract

This tutorial uses the default contract `Add` that is always scaffolded with the `zk project` command.
Expand Down

0 comments on commit 5c11cbc

Please sign in to comment.