---
pageClass: examples

---

# Empty

Similar to the drag and drop example, we can also add nodes to an empty graph on a button click, 
which triggers a push into our elements / nodes array.

<div class="mt-6">
  <client-only>
    <Suspense>
      <Repl example="empty"></Repl>
    </Suspense>
  </client-only>
</div>
