Skip to content

Commit a80eadf

Browse files
committed
Upgrade to React 0.11.1
1 parent 94b383e commit a80eadf

File tree

7 files changed

+3892
-2525
lines changed

7 files changed

+3892
-2525
lines changed

site/jekyll/getting-started/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Replace the contents of the new view file with the following:
6666
</head>
6767
<body>
6868
<div id="content"></div>
69-
<script src="http://fb.me/react-0.10.0.js"></script>
69+
<script src="http://fb.me/react-0.11.1.js"></script>
7070
<script src="@Url.Content("~/Scripts/Tutorial.jsx")"></script>
7171
</body>
7272
</html>
@@ -239,7 +239,7 @@ Markdown is a simple way to format your text inline. For example, surrounding te
239239
First, add the third-party **Showdown** library to your application. This is a JavaScript library which takes Markdown text and converts it to raw HTML. We will add it via NuGet (search for "Showdown" and install it, similar to how you installed ReactJS.NET earlier) and reference the script tag in your view:
240240

241241
```html{2}
242-
<script src="http://fb.me/react-0.10.0.js"></script>
242+
<script src="http://fb.me/react-0.11.1.js"></script>
243243
<script src="@Url.Content("~/Scripts/showdown.min.js")"></script>
244244
<script src="@Url.Content("~/Scripts/Tutorial.jsx")"></script>
245245
```
@@ -860,7 +860,7 @@ Now that the bundle has been registered, we need to reference it from the view:
860860
</head>
861861
<body>
862862
<div id="content"></div>
863-
<script src="http://fb.me/react-0.10.0.js"></script>
863+
<script src="http://fb.me/react-0.11.1.js"></script>
864864
@Scripts.Render("~/bundles/main")
865865
@Html.ReactInitJavaScript()
866866
</body>
@@ -948,7 +948,7 @@ In the view, we will accept the list of comments as the model, and use `Html.Rea
948948
submitUrl = Url.Action("AddComment"),
949949
pollInterval = 2000,
950950
})
951-
<script src="http://fb.me/react-0.10.0.js"></script>
951+
<script src="http://fb.me/react-0.11.1.js"></script>
952952
<script src="@Url.Content("~/Scripts/showdown.min.js")"></script>
953953
<script src="@Url.Content("~/Scripts/Tutorial.jsx")"></script>
954954
@Html.ReactInitJavaScript()

site/jekyll/guides/cassette.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ render from your view using Cassette:
3636
</head>
3737
<body>
3838
...
39-
<script src="http://fb.me/react-0.10.0.min.js"></script>
39+
<script src="http://fb.me/react-0.11.1.min.js"></script>
4040
@Bundles.RenderScripts()
4141
</body>
4242
```

site/jekyll/guides/server-side-rendering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ code.
4747
```html
4848
<!-- Load all your scripts normally before calling ReactInitJavaScript -->
4949
<!-- Assumes minification/combination is configured as per previous section -->
50-
<script src="http://fb.me/react-0.10.0.min.js"></script>
50+
<script src="http://fb.me/react-0.11.1.min.js"></script>
5151
@Scripts.Render("~/bundles/main")
5252
@Html.ReactInitJavaScript()
5353
```
@@ -62,7 +62,7 @@ code.
6262
</div>
6363
</div>
6464

65-
<script src="http://fb.me/react-0.10.0.min.js"></script>
65+
<script src="http://fb.me/react-0.11.1.min.js"></script>
6666
<script src="/Scripts/HelloWorld.js"></script>
6767
<script>React.renderComponent(HelloWorld({"name":"Daniel"}), document.getElementById("react1"));</script>
6868
```

site/jekyll/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ bundles.Add(new JsxBundle("~/bundles/main").Include(
105105
})
106106

107107
<!-- Initialise the component in JavaScript too -->
108-
<script src="http://fb.me/react-0.10.0.min.js"></script>
108+
<script src="http://fb.me/react-0.11.1.min.js"></script>
109109
@Scripts.Render("~/bundles/main")
110110
@Html.ReactInitJavaScript()
111111
```

src/React.Sample.Cassette/Views/Home/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@Html.React("CommentsBox", new { initialComments = Model.Comments })
2121

2222
<!-- Load all required scripts (React + the site's scripts) -->
23-
<script src="http://fb.me/react-0.10.0.min.js"></script>
23+
<script src="http://fb.me/react-0.11.1.min.js"></script>
2424
@Bundles.RenderScripts()
2525
<!-- Render the code to initialise the component -->
2626
@Html.ReactInitJavaScript()

src/React.Sample.Mvc4/Views/Home/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@Html.React("CommentsBox", new { initialComments = Model.Comments })
1818

1919
<!-- Load all required scripts (React + the site's scripts) -->
20-
<script src="http://fb.me/react-0.10.0.min.js"></script>
20+
<script src="http://fb.me/react-0.11.1.min.js"></script>
2121
@Scripts.Render("~/bundles/main")
2222
<!-- Render the code to initialise the component -->
2323
@Html.ReactInitJavaScript()

0 commit comments

Comments
 (0)