Extending Graphbook
Our social network is still a bit rough. Aside from the fact that we are still missing authentication, all of the features are pretty basic; writing and reading the posts and messages is nothing exceptional.
If you compare it to Facebook, there are many things that we need to do. Of course, we cannot rebuild Facebook in its totality, but the usual features should be there. From my point of view, we should cover the following features:
- Adding a drop-down menu to the posts to allow deletion of posts.
- Creating a global
user
object with the React Context API. - Using Apollo cache as an alternative to the React Context API.
- Implementing a top bar as the first component rendered above all of the views. We can search for users in our database from a search bar, and we can show the logged-in user from the global
user
object.
We will begin by looking at the first feature.
The React context menu
You should be able to write the React context...