.NET library for JSX compilation and server-side rendering of React components
awayken and Daniel15 Update PackageLicenseUrl to point to LICENSE file (#613)
I think License info used to originally display in the README, and the former link would anchor down to it. This will take users to the correct place.
Latest commit 810e715 Oct 18, 2018
Permalink
Failed to load latest commit information.
site Combine CoreMvc samples together (#604) Oct 12, 2018
src Update PackageLicenseUrl to point to LICENSE file (#613) Oct 18, 2018
tests Add test for TransformRenderedHtml Oct 7, 2018
tools Update nuget version Oct 13, 2018
tutorial-code Update docs (#548) Jun 11, 2018
webhooks Add Netlify webhook Jul 4, 2018
.editorconfig Enforce consistent line endings Jan 20, 2018
.gitattributes Enforce consistent line endings Jan 20, 2018
.gitignore Combine CoreMvc samples together (#604) Oct 12, 2018
.gitmodules Switch to @pauldotknopf's VroomJs fork rather than maintaining our own. Oct 1, 2016
LICENSE Rename React.NET to ReactJS.NET Mar 29, 2014
PATENTS Update Patent Grant Apr 10, 2015
README.md Combine CoreMvc samples together (#604) Oct 12, 2018
appveyor.yml Upgrade to Visual Studio 2017 + csproj tooling (#406) May 11, 2017
build.proj Update nuget version Oct 13, 2018
dev-build-push.bat Added all three VS 2017 versions to all build scripts (#610) Oct 17, 2018
dev-build.bat Added all three VS 2017 versions to all build scripts (#610) Oct 17, 2018
global.json Add more CSS-in-JS helpers (#602) Oct 7, 2018
netlify.toml Combine CoreMvc samples together (#604) Oct 12, 2018
release-build-push.bat Added all three VS 2017 versions to all build scripts (#610) Oct 17, 2018
release-build.bat Added all three VS 2017 versions to all build scripts (#610) Oct 17, 2018
runs-msbuild.bat Added all three VS 2017 versions to all build scripts (#610) Oct 17, 2018

README.md

ReactJS.NET

ReactJS.NET is a library that makes it easier to use Babel along with Facebook's React and JSX from C#.

Build status  NuGet version Download count

Features

Quick Start

Install the package

Install-Package React.Web.Mvc4 # For ASP.NET MVC 4 or 5
Install-Package React.AspNet   # For ASP.NET Core MVC

Create JSX files

// /Scripts/HelloWorld.jsx
class HelloWorld extends React.Component {
	render() {
		return <div>Hello {this.props.name}</div>;
	}
}

Reference the JSX files from your HTML

<script src="@Url.Content("~/Scripts/HelloWorld.jsx")"></script>

Now you can use the HelloWorld component.

For information on more advanced topics (including precompilation and server-side rendering), check out the documentation

Building Manually and Contributing

When building your own copy of ReactJS.NET (for example, if implementing a new feature or fixing a bug), your first build always needs to be done using the build script (dev-build.bat) as this generates a few files required by the build (such as SharedAssemblyVersionInfo.cs). Once this build is completed, you can open React.sln in Visual Studio and compile directly from Visual Studio. Please refer to the documentation page on contributing for more information on contributing to ReactJS.NET.

Note that the build requires you to have Git installed. If you do not want to install Git, you may remove the GitVersion task from build.proj.