- Learn about Native's lifecycles hooks
- Learn about all the Stencil's lifecycles hooks
- Learn about @State decorator
- Server :
npm run start-02
- Tests :
npm test -- -t 02
- components/stencil-hello/stencil-hello.tsx
- Start a counter with the lifecycle equivalent to
connectedCallback
(in native specs) hook using @state. - At the beginning the DOM should be
<div>0</div>
but after 10 seconds the DOM should be<div>10</div>
. - Clean the counter reference in the lifecycle equivalent to
disconnectedCallback
(in native specs) hook