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

Say you have a custom React-based form and want to add it to DWKit.

  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 Core 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.

You can get acquainted with the results here: http://hr.dwkit.com/page/workcalendar