💻 Check out this Codesandbox demo: Vue 2 Playground
ℹ️ This approach works for Vue 2.6 and above.
🔍 Tiny: Just 10 lines of source code, no dependencies.
✨ The same Zustand store can be used with different libraries, such as Vue, React, or Svelte.
💻 Check out this Codesandbox demo: Vue 2 Playground
ℹ️ This approach works for Vue 2.6 and above.
🔍 Tiny: Just 10 lines of source code, no dependencies.
✨ The same Zustand store can be used with different libraries, such as Vue, React, or Svelte.
<script type="text/javascript"> | |
// Download the ZIP(on github), and open this HTML file in the browser. | |
// Open the console, and you should see the result of runTest(20, 100); | |
// try writing "runTest(1000,10)" in the console | |
runTest(20, 100); | |
// the Percolation and WeightedQuickUnionUF functions come from this article: | |
// http://michaeltoth.me/using-javascript-to-visualize-a-percolation-system.html |