Created
May 11, 2020 13:15
-
-
Save pavinduLakshan/78d7838c22fd635e229ddc8ab5e2a94a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React,{useState} from 'react'; | |
import {useSelector} from 'react-redux'; | |
const ChildComponent = () => { | |
const appTheme = useSelector(state => state.theme) | |
return ( | |
<div> | |
<p>{appTheme}</p> | |
</div> | |
) | |
} | |
export default ChildComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment