Skip to content

fortedigital/ReactForte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ForteReact

Library to render React library components on the server-side with C# as well as on the client. ForteReact has two options to render components:

How to run

1. Add WebpackOptions to appsettings

For Development

"Webpack": { "OutputPath": "http://localhost:8080" }

For Production

"Webpack": { "OutputPath": "./path/to/output" }

2. Modify Startup.cs

For ReactJS.NET

services.AddReact(_configuration, _webHostingEnvironment.ContentRootPath);
app.UseReact(config =>
    {
        ...       
    });		

More info https://reactjs.net/tutorials/aspnetcore.html

For Wrapper

services.AddReact(_configuration, _webHostingEnvironment.ContentRootPath, options => {...})
app.UseReact(FilesToInclude, new Version("x.x.x"));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published