Created
April 6, 2020 14:45
-
-
Save DennisDurairaj/72e74e6f67aeaa594a0bc57edb562135 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
import React from 'react'; | |
import { useSelector } from 'react-redux'; | |
export const Users = () => { | |
const users = useSelector(state => state.users); | |
return <div>{users.map(user => <p>user.name</p>)}</div> | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment