Created
April 17, 2018 23:09
-
-
Save idmontie/97e03fc78e7343e8c3ac94c56d101762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Switch = ({ on, onToggle }) => ( | |
<label className={styles.switch} onClick={onToggle}> | |
<input | |
checked={on} | |
type="checkbox" | |
/> | |
<span className={styles.slider} /> | |
</label> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment