All right.
And up next, let's set up the all jobs context and the reason why we want to set up another context
in here, because jobs container.
As well as the search container is going to contain more components and there's going to be some values
that we basically want to grab from the all jobs.
And of course, you can pass them as props.
But again, in my experience, people then start complaining why we're passing them as props.
So I'll raise it up with the context approach.
Again, please keep in mind, just like the previous one that we set up in the dashboard context, remember
this one over here?
When we were passing these values to the small sidebar big sidebar, as well as the nav bar.
Technically, it is optional.
Again, the result is going to be exactly the same.
So let's go to all jobs.
In order to create the context, first of all, we want to go with const and come up with a name.
In my case, it's going to be all jobs.
Context that is equal to create context, which is coming from React.
And then as far as the return, well, instead of the fragment, now let's go with all jobs context
and then we're looking for provider and we want to pass in the value prop and in there for now we're
just going to pass in the data again our object and there of course we have the jobs property.
So that's the starting point.
And also I want to set up the hook, which of course we're going to use pretty much in the next video.
So let's go here with export const.
And as far as the name, I'm going to go with, use all jobs.
Context, and that is equal to my function.
And from this function I simply want to return, use context and pass in the all jobs context.
And with this in place, we're ready to move on to the next step.