Created
May 29, 2020 22:45
-
-
Save GunaShekar02/f14725e119a60811d5931f37120b66ec 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 { useRecoilValue } from "recoil"; | |
import { currentContactDetails } from "../../recoil/selectors"; | |
const Card = () => { | |
const contact = useRecoilValue(currentContactDetails); | |
return ( | |
<> | |
<h3>{contact.name}</h3> | |
<span>ADDRESS : {contact.address}</span> | |
<span>PHONE : {contact.phone}</span> | |
<span>EMAIL : {contact.email}</span> | |
</> | |
); | |
}; | |
export default Card; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment