If you practice you can do it no-hands on a stationary bike as well. Taken me a few weeks to learn, but cool to stop at a red light and do a no-hand trackstand ;)
It's easier if you can find a sliiiight incline to do it against. So for instance if the road slopes a bit to the right (more elevated on the left side), I turn my front wheel to the left, "up" the small incline. Then I can push the pedal to go a cm forward, or release it a bit to roll a cm backwards. So it kinda simulates a unicycle, except you use the slight incline to do the backpedaling you would do on a unicycle. The better you get at it, the flatter you can go, and when you find the balance you can lift your hands. Good luck!