Created
March 21, 2020 12:14
-
-
Save DJanoskova/610594f00beba34680984cf4b2faf8da 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
| export const UserContainer = () => { | |
| const [user, setUser] = useState(null); | |
| // do some apiCall here | |
| return ( | |
| <div> | |
| {user ? <UserCard user={user} /> : 'No data available'} | |
| </div> | |
| ); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment