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:
- Solid's Signals
- Preact's Signals
- Qwik's Signals
Is your feature request related to a problem? Please describe.
I knew that there is already an existing
useProp()anduseState()which already do their job just nice. I wonder if Signals is a valid feature to be considered inatomico.Describe the solution you'd like
Describe alternatives you've considered
useState()does the same thing already.Additional context
Prior arts: