Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update zokrates_js.html #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion toolbox/zokrates_js.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ <h1 class="menu-title">ZoKrates</h1>
<p><strong>Note:</strong> As this library uses a model where the wasm module itself is natively an ES module, you will need a bundler of some form.
Currently the only known bundler known to be fully compatible with <code>zokrates-js</code> is <a href="https://webpack.js.org/">Webpack</a>.
The choice of this default was done to reflect the trends of the JS ecosystem.</p>
<p>If using the library with React, it may be helpful to <a href="https://www.telerik.com/blogs/using-webassembly-with-react">reference this post</a> on using WASM with React.</p>
<pre><code class="language-js">import { initialize } from 'zokrates-js';
</code></pre>
<a class="header" href="#node" id="node"><h5>Node</h5></a>
<pre><code class="language-js">const { initialize } = require('zokrates-js/node');
<pre><code class="language-js">const { initialize } = require('zokrates-js');
</code></pre>
<a class="header" href="#example" id="example"><h2>Example</h2></a>
<pre><code class="language-js">initialize().then((zokratesProvider) =&gt; {
Expand Down