Small-Tasks.1.Write function for hook to consume custom events related to Document or Window closing a Pop-up if the user clicks outside the Pop-Up. 2.Write an example of Interceptor to modify HTTP requests. Ensure that each field/parameter is trimmed before request is processed.3.Write an example to Interceptor to modify response received from any API’s before it is sent to client.4.Write an example of custom Higher Order Component to make its children center aligned.5.Write a custom function that lets you deep compare dependencies and then re-render if any changes are detected.6.Write an example React context and provider