File tree Expand file tree Collapse file tree 3 files changed +51
-7
lines changed Expand file tree Collapse file tree 3 files changed +51
-7
lines changed Original file line number Diff line number Diff line change 1- ReactJS.NET
1+ [ ReactJS.NET] ( http://reactjs.net/ )
22===========
33ReactJS.NET is a library that makes it easier to use Facebook's
44[ React] ( http://facebook.github.io/react/ ) and
5- [ JSX] ( http://facebook.github.io/react/docs/jsx-in-depth.html ) from C#. To get
6- started, [ take a look at the documentation] ( http://reactjs.net/getting-started/getting-started.html ) .
7-
8- ** It is currently under development and there is no stable release at the moment.
9- Coming soon!**
5+ [ JSX] ( http://facebook.github.io/react/docs/jsx-in-depth.html ) from C#.
106
117Features
128========
@@ -18,6 +14,36 @@ Features
1814 * [ Server-side component rendering] ( http://reactjs.net/guides/server-side-rendering.html )
1915 to make your initial render super-fast (experimental!)
2016
17+ Quick Start
18+ ===========
19+ Install the package
20+ ```
21+ Install-Package React.Mvc4
22+ ```
23+
24+ Create JSX files
25+ ``` javascript
26+ // /Scripts/HelloWorld.jsx
27+ /** @jsx React.DOM */
28+ var HelloWorld = React .createClass ({
29+ render : function () {
30+ return (
31+ < div> Hello {this .props .name }< / div>
32+ );
33+ }
34+ });
35+ ```
36+
37+ Reference the JSX files from your HTML
38+ ``` html
39+ <script src =" @Url.Content(" ~ /Scripts /HelloWorld.jsx " )" ></script >
40+ ```
41+
42+ Now you can use the ` HelloWorld ` component.
43+
44+ For information on more advanced topics (including precompilation and
45+ server-side rendering), check out [ the documentation] ( http://reactjs.net/docs )
46+
2147Licence
2248=======
2349BSD License for ReactJS.NET
Original file line number Diff line number Diff line change 55
66 # Shortcuts
77 rewrite ^/download$ /getting-started/download.html redirect;
8+ rewrite ^/docs$ /getting-started/download.html redirect;
89
910 rewrite ^/packages/$ /packages/index .php;
1011 rewrite ^/packages/\$metadata$ /packages/metadata.xml;
Original file line number Diff line number Diff line change 1313 font-size : 4em ;
1414 margin : 0 ;
1515 }
16+ h2 {
17+ margin : 0 ;
18+ padding : 0 ;
19+ }
20+ a , a : visited {
21+ color : yellow;
22+ text-decoration : none;
23+ }
24+ a : hover {
25+ text-decoration : underline;
26+ }
1627 </ style >
1728</ head >
1829< body >
1930 < img src ="http://facebook.github.io/react/img/logo_og.png " alt ="React logo " width ="300 " height ="300 " />
2031 < h1 > ReactJS.NET</ h1 >
21- < p > Coming soon!</ p >
32+ < h2 > Use React and JSX from C# / .NET</ h2 >
33+ < p >
34+ < a href ="/docs "> Docs</ a > ·
35+ < a href ="/download "> Download</ a > ·
36+ < a href ="http://github.com/ReactJS/React.NET "> GitHub</ a >
37+ </ p >
38+ < p > Site coming soon!</ p >
2239</ body >
2340</ html >
You can’t perform that action at this time.
0 commit comments