Replace the getContext hoc with the useContext hook? https://reactjs.org/docs/hooks-reference.html#usecontext