Lape

Lape

  • Docs
  • GitHub

›API

Getting Started

  • Getting Started
  • Thinking in Lape

API

  • lape
  • connect
  • useLape
  • useLapeEffect
  • undo / redo
  • ignoreState
  • lapeTrackUseState

Guides

  • Testing
  • Routing

lape

lape wraps an object in a transparent Proxy. It takes and object and returns the same object without changing it in any way.

Example

import { lape } from "lape";

const defaultState = {
  count: 0,
  deep: {
    nested: true,
  },
  array: [],
};

const state = lape(defaultState);

state.count = 2;
state.deep.nested = false;
state.array.push({ hello: "hi" });
state.array[0].hello = "hello";
delete state.deep;
state.array.pop();
← Thinking in Lapeconnect →
  • Example
Lape
Docs
Getting StartedAPI ReferenceGuides
Other Projects
Ugnis
More
GitHubStar
Copyright © 2021 Ugnis. All Rights Reserved.