To provide a default value to a context when using useContext, you can pass a default value to the createContext function.