Created
May 15, 2020 17:52
-
-
Save nsantos16/99d85d896256be0006f3d55cab8c5595 to your computer and use it in GitHub Desktop.
React query API demo
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
// An individual movie | |
useQuery(['movies', 5], ...); | |
// A list of movies that are "released" | |
useQuery(['movies', { type: 'released' }], ...); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment