An example showing how to integrate Server Side React with Asp.Net Webforms.
We use ReactJS.Net
See the following files:
File | What is it? |
---|---|
/App_Start/ReactConfig.cs | The Asp.Net React Configuration File |
/package.json | Project Npm Packages |
/Controls/ReactComponentSelector.cs | Custom Asp.Net Server Control to help add React component to the page. |
/src/components/* | React Components |
/Default.aspx | Uses the Server Control to add the React Components |
/tsconfig.json | Typescript Configuration for this project |
Also need Nuget package and dependencies: React.Web.Mvc4