Render Phase
👨💼 Great! It's not quite working yet, now if we add
console.log({ count, enabled })
to the component, we'll get
{ count: 0, enabled: true }
like you'd expect, but when you click the counter
button we get { count: 1, enabled: 1 }
😅. And if you click the disable button
you get { count: false, enabled: false }
. What the heck is going on!? Let's
find out.