/// <summary> /// Ensures that this component exists in global scope /// </summary> private void EnsureComponentExists() { if (!_environment.HasVariable(_componentName)) { throw new ReactInvalidComponentException(string.Format( "Could not find a component named '{0}'. Did you forget to add it to " + "App_Start\\ReactConfig.cs?", _componentName )); } }