Last active
March 25, 2020 21:10
-
-
Save rubenmarcus/d32a279d9e3171baf07a4e87e9f4b383 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 Toggle = ({ toggleSwitch }) => { | |
const ui = useSelector(state => state.ui); | |
return ( | |
<div> | |
<div>{JSON.stringify(ui)}</div> | |
<input type="checkbox" value={ui.toggle} onChange={toggleSwitch} /> | |
</div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment