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/ )
2
2
===========
3
3
ReactJS.NET is a library that makes it easier to use Facebook's
4
4
[ 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#.
10
6
11
7
Features
12
8
========
@@ -18,6 +14,36 @@ Features
18
14
* [ Server-side component rendering] ( http://reactjs.net/guides/server-side-rendering.html )
19
15
to make your initial render super-fast (experimental!)
20
16
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
+
21
47
Licence
22
48
=======
23
49
BSD License for ReactJS.NET
Original file line number Diff line number Diff line change 5
5
6
6
# Shortcuts
7
7
rewrite ^/download$ /getting-started/download.html redirect;
8
+ rewrite ^/docs$ /getting-started/download.html redirect;
8
9
9
10
rewrite ^/packages/$ /packages/index.php;
10
11
rewrite ^/packages/\$metadata$ /packages/metadata.xml;
Original file line number Diff line number Diff line change 13
13
font-size : 4em ;
14
14
margin : 0 ;
15
15
}
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
+ }
16
27
</ style >
17
28
</ head >
18
29
< body >
19
30
< img src ="http://facebook.github.io/react/img/logo_og.png " alt ="React logo " width ="300 " height ="300 " />
20
31
< 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 >
22
39
</ body >
23
40
</ html >
You can’t perform that action at this time.
0 commit comments