@samitouri / QOS-React-2 / commits / 21de5c816f

ReactJS.NET blog post

Closes #1354.

Daniel Lo Nigro committed Apr 4, 2014 at 13:22 UTC 21de5c816f5dbc320b8e7e0a1c32397a080e6ac2
1 file changed +38
docs/_posts/2014-04-04-reactnet.md new
+38
@@ -0,0 +1,38 @@
1 +---
2 +title: "Use React and JSX in ASP.NET MVC"
3 +layout: post
4 +author: Daniel Lo Nigro
5 +---
6 +
7 +Today we're happy to announce the initial release of
8 +[ReactJS.NET](http://reactjs.net/), which makes it easier to use React and JSX
9 +in .NET applications, focusing specifically on ASP.NET MVC web applications.
10 +It has several purposes:
11 +
12 + - On-the-fly JSX to JavaScript compilation. Simply reference JSX files and they
13 + will be compiled and cached server-side.
14 +
15 + ```html
16 + <script src="@Url.Content("/Scripts/HelloWorld.jsx")"></script>
17 + ```
18 + - JSX to JavaScript compilation via popular minification/combination libraries
19 + (Cassette and ASP.NET Bundling and Minification). This is suggested for
20 + production websites.
21 + - Server-side component rendering to make your initial render super fast.
22 +
23 +Even though we are focusing on ASP.NET MVC, ReactJS.NET can also be used in
24 +Web Forms applications as well as non-web applications (for example, in build
25 +scripts). ReactJS.NET currently only works on Microsoft .NET but we are working
26 +on support for Linux and Mac OS X via Mono as well.
27 +
28 +Installation
29 +------------
30 +ReactJS.NET is packaged in NuGet. Simply run `Install-Package React.Mvc4` in the
31 +package manager console or search NuGet for "React" to install it.
32 +[See the documentation](http://reactjs.net/docs) for more information. The
33 +GitHub project contains
34 +[a sample website](https://github.com/reactjs/React.NET/tree/master/src/React.Sample.Mvc4)
35 +demonstrating all of the features.
36 +
37 +Let us know what you think, and feel free to send through any feedback and
38 +report bugs [on GitHub](https://github.com/reactjs/React.NET).