anchor

Anchor Vue Library

This is the official Anchor library for Vue. It provides a set of tools to manage state in your Vue applications, based on the principles of the Anchor framework.

Installation

npm install @anchorlib/vue

Documentation

For full documentation, visit Anchor for Vue

Quick Start

Here’s a simple example of how to use anchorRef in a Vue component:

<script setup>
import { anchorRef } from '@anchorlib/vue';

const state = anchorRef({
  user: {
    name: 'John Doe',
    age: 30,
  },
  isAuthenticated: false,
});
</script>

<template>
  <div>
    <h1></h1>
    <p>Age: </p>
    <button @click="state.user.age++">Increment Age</button>
  </div>
</template>

License

MIT


## License

MIT