No Context when using hyper dom expressions

I've this strange behaviour that
useCounter(CounterContext)
returns
undefined
when porting the context example to use hyper dom expressions.

Check codepen here: https://codepen.io/wrnrlr/pen/eYojdqV?editors=1011

Any ideas what I am doing wrong?
Was this page helpful?