React Custom Context Hook

Updatable React context Hook with custom logic in TypeScript.