Technical requirements
This chapter relies on the GitHub solution accessible here: https://github.com/PacktPublishing/Mastering-SharePoint-Development-with-the-SharePoint-Framework-/tree/chapter13/build-a-seach-query-modifier. Similar to the earlier chapters, you need to first clone the repository locally on your machine to be able to follow the steps. As the solution is built step by step, for each section in this chapter, a dedicated Git branch has been created, representing the solution at a specific state corresponding to a section. Before reading each section, you must check out the corresponding branch before using either the Git command line or a Git client such as GitHub Desktop, SourceTree, and so on.
Code snippets
For brevity and readability considerations, only the relevant parts of the code are detailed in the provided snippets in this chapter. For this reason, ad hoc code, such as importing dependencies, and updates to certain files may be omitted. We recommend having...