Created
April 6, 2020 14:44
-
-
Save DennisDurairaj/b1c87a230d31e0cf40ad2bd10e63eac5 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 selectUsers = state => state.users; | |
const users = useSelector(selectUsers); | |
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