/// <summary> /// Renders the JavaScript required to initialize all components client-side. /// This will attach event handlers to the server-rendered HTML. /// </summary> /// <param name="dnnHelper">DNN helper</param> /// <param name="clientOnly">Skip rendering server-side and only output client-side initialization code. Defaults to <c>false</c></param> /// <returns>JavaScript for all components</returns> public static IHtmlString ReactInitJavaScript(this DnnHelper dnnHelper, bool clientOnly = false) { return(DnnReact.ReactInitJavaScript(clientOnly)); }