Skip to content

No functional components example in custom parameter editor article of React report viewer #1802

@petar-i-todorov

Description

@petar-i-todorov

The How to Create a Custom Parameter Editor article features an example using class components. However, there is no componentDidMount method there. Changing it with useEffect hook appears to be working:

function loadScript(callback) {
    const script = document.createElement("script");
    script.src = "https://kendo.cdn.telerik.com/2025.1.227/js/kendo.all.min.js";
    script.async = true;
    script.onload = callback;
    document.body.appendChild(script);
}

React.useEffect(() => {
  loadScript(() => {});
}, [])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions