Skip to content

Instantly share code, notes, and snippets.

@idmontie
Last active April 17, 2018 23:43
Show Gist options
  • Save idmontie/469e478964ccd7b70cc1cc4bd1232976 to your computer and use it in GitHub Desktop.
Save idmontie/469e478964ccd7b70cc1cc4bd1232976 to your computer and use it in GitHub Desktop.
<Toggle>
{({ on, onToggle }) => (
<Switch on={on} onToggle={onToggle} />
)}
</Toggle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment