Skip to content

Instantly share code, notes, and snippets.

@SevInf
Created August 25, 2018 09:20
Show Gist options
  • Save SevInf/c36622ecf6faec931d41507333ebdeb0 to your computer and use it in GitHub Desktop.
Save SevInf/c36622ecf6faec931d41507333ebdeb0 to your computer and use it in GitHub Desktop.
Live bindings demo
export let counter = 1;
export function increment() {
counter++;
}
import { counter, increment } from './counter.mjs';
console.log(counter); // prints 1
increment();
console.log(counter); // prints 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment