- So now we've refactored code up…to kind of clean this up a bit.…Our next step is we actually need to move…over to the app or to the widgets query for the table.…We should also set up an actual query for loading…in the tool name for our actual header.…So in our queries here, we already had the beginnings…of a widgets query, but let's go ahead…and create a tool named query.…So we'll say new file.…Tool name query.…Now this one's actually going to be pulling…from our local client state so inside of here,…we're going to say import react from react,…import query from dots or from react apollo.…
And then here we're going to say import gql from graph ql tag.…Now here we're going to say export const,…tool name query, gql our tag template literal.…And we'll simply say query.…Tool name query.…And we'll just say tool name…and of course use our client directive.…
There we go.…Now we're actually going to export out of here…an actual tool name query component.…And we'll set this up to simply return back.…Our const there to simply return back…
Skill Level Advanced
GraphQL Essential Training (2018)with Emmanuel Henri1h 54m Intermediate
React.js Essential Training (2018)with Eve Porcello1h 25m Intermediate
1. Apollo Client State with React
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.