I want to add my own React-based form. How do I do that?
-
Add your control to the main form Optimajet.DWKit.StarterApplication\wwwroot\js\app\app.jsx
-
Set up routing inside the React application. For example:
<Route path="/page/workcalendar" component={Calendar} />
-
Set up routing inside the .NET application. For example:
routes.MapRoute("page", "page/{pageName}/{*other}",
defaults: new { controller = "StarterApplication", action = "Index" }); -
Rebuild the React application by calling the webpack command in the Optimajet.DWKit.StarterApplication folder.