Sure, here's a tiny React counter:
Call useState once per piece of state and React will preserve it across renders.
useState