mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Simplify ReactRenderer API when referencing default modules
This commit is contained in:
@@ -17,7 +17,6 @@ namespace ReactExample.Controllers
|
||||
{
|
||||
ViewData["ReactOutput"] = await ReactRenderer.RenderToString(this.nodeServices,
|
||||
moduleName: "ReactApp/components/ReactApp.jsx",
|
||||
exportName: "ReactApp",
|
||||
baseUrl: Request.Path
|
||||
);
|
||||
return View();
|
||||
|
||||
Reference in New Issue
Block a user