The defaultValue parameter is used to set a default value for the context when no provider is found in the component tree.