Created
February 18, 2023 16:08
-
-
Save Marcisbee/f69440c153aa82cf945a31501cb872bf to your computer and use it in GitHub Desktop.
Experimental API for FE framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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