Skip to content

Instantly share code, notes, and snippets.

@Marcisbee
Created February 18, 2023 16:08
Show Gist options
  • Save Marcisbee/f69440c153aa82cf945a31501cb872bf to your computer and use it in GitHub Desktop.
Save Marcisbee/f69440c153aa82cf945a31501cb872bf to your computer and use it in GitHub Desktop.
Experimental API for FE framework
const counter = new (class extends Exome {
count = 0
increment() {
this.count += 1
}
})
function Counter({
counter: { count, increment } = counter,
}) {
return (
<h1 onClick={increment}>{count}</h1>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment