0.2.0 • Published 6 years ago

musical-fiesta v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

musical-fiesta

Proxy experiment for manage stores.

Usage

import { createStore } from "musical-fiesta";

function render(oldState, newState) {
  const html = `State was:
		<pre>${JSON.stringify(oldState, null, 2)}</pre>
	Now is:
		<pre>${JSON.stringify(newState, null, 2)}</pre>
	`;

  document.body.innerHTML = html;
}

const INITIAL_STATE = { message: "" };

const state = createStore(INITIAL_STATE, render);

state.setStore({
  message: "Yay! is working!",
  action: "Ready!"
});
0.2.0

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago