Skip to main content

I want to add my own React-based form. How do I do that?

  1. Add your control to the main form Optimajet.DWKit.StarterApplication\wwwroot\js\app\app.jsx

  2. Set up routing inside the React application. For example:

    <Route path="/page/workcalendar" component={Calendar} />
  3. Set up routing inside the .NET application. For example:

    routes.MapRoute("page", "page/{pageName}/{*other}",
    defaults: new { controller = "StarterApplication", action = "Index" });
  4. Rebuild the React application by calling the webpack command in the Optimajet.DWKit.StarterApplication folder.