-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I knew that there is already an existing useProp() and useState() which already do their job just nice. I wonder if Signals is a valid feature to be considered in atomico.
Describe the solution you'd like
import { html, useSignal } from 'atomico';
function MyComponent() {
const $count = useSignal(0);
return html`
<host shadowDom>
<button onclick=${() => $count.value--}>-</button>
<span>${count.value}</span>
<button onclick=${() => $count.value++}>+</button>
</host>
`;
}Describe alternatives you've considered
useState() does the same thing already.
Additional context
Prior arts:
UpperCod and CathalMullan
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request