Note: This client created above uses user auth and you need to pass in your usersauthToken after your user is authenticated. API calls that do not require user authorization (generally queries like nftModels) will still function if authToken isn't provided.
Important Note: In typescript projects, to use the react imports (providers and hooks) you might need your compilerOptions in tsconfig moduleResolution to be set as nodenext
Now, you now call the exported react hooks as follows:
The hooks are always named in the format use[APIName]Query for queries and use[APIName]Mutation for mutations. For APIName, you can view Niftory API docs here.
For examples of react usage, you can check out our sample apps using the Niftory SDK: