Epic React V2

Control Props

The point here is to have one component or hook that supports both being controlled and uncontrolled with the same code path.

Controlled Toggle:

Click count: 0

Uncontrolled Toggle: