You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/jekyll/_posts/2016-10-09-3.0.0-release.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ layout: post
4
4
author: Daniel Lo Nigro
5
5
---
6
6
7
-
I'm happy to announce the release of ReactJS.NET 3.0! The major change in this release is the addition of support for .NET Core! [The tutorial](/tutorials/aspnetcore.html) has also been totally revamped for ASP.NET Core, and a completed version of the tutorial code is now [available in the ReactJS.NET Git repository](https://github.com/reactjs/React.NET/tree/master/tutorial-code)
7
+
I'm happy to announce the release of ReactJS.NET 3.0! The major change in this release is the addition of support for .NET Core! [The tutorial](/tutorials/aspnetcore.html) has also been totally revamped for ASP.NET Core, and a completed version of the tutorial code is now [available in the ReactJS.NET Git repository](https://github.com/reactjs/React.NET/tree/master/src/React.Template/reactnet-vanilla)
Copy file name to clipboardExpand all lines: site/jekyll/_posts/2019-11-24-5.1.2-release.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: Dustin Masters
6
6
7
7
🚀 We're pleased to announce the release of ReactJS.NET 5.1.2. A few small updates in this release:
8
8
9
-
- .NET Core 3.0 support. The [tutorial project](https://github.com/reactjs/React.NET/tree/master/tutorial-code) has also been updated to demonstrate the (simple!) migration path.
9
+
- .NET Core 3.0 support. The [tutorial project](https://github.com/reactjs/React.NET/tree/master/src/React.Template/reactnet-vanilla) has also been updated to demonstrate the (simple!) migration path.
Copy file name to clipboardExpand all lines: site/jekyll/getting-started/aspnetcore.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,16 @@ title: Getting Started (ASP.NET Core)
6
6
7
7
#### 👀 Just want to see the code? Check out the [sample project](https://github.com/reactjs/React.NET/tree/master/src/React.Sample.Webpack.CoreMvc).
8
8
9
+
## For new projects:
10
+
11
+
```
12
+
dotnet new -i React.Template
13
+
dotnet new reactnet-vanilla
14
+
dotnet run
15
+
```
16
+
17
+
## For existing projects:
18
+
9
19
This guide covers enabling server-side rendering and Babel compilation. Getting started with ReactJS.NET on ASP.NET Core requires a few more steps compared to previous versions of ASP.NET and MVC. If you want a step-by-step guide on configuring a brand new site, see [the ReactJS.NET tutorial for ASP.NET Core](/tutorials/aspnetcore.html).
10
20
11
21
ReactJS.NET requires at least Visual Studio 2015 and ASP.NET Core 1.0, but has also been tested with VS 2017 and .NET Core 2.1.
Copy file name to clipboardExpand all lines: site/jekyll/tutorials/aspnetcore.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,16 @@ layout: docs
8
8
>
9
9
> This tutorial is for Visual Studio 2019 and ASP.NET Core MVC. If you're still using ASP.NET 4 and ASP.NET MVC 5, you can [follow the ASP.NET 4 tutorial instead](/tutorials/aspnet4.html)
10
10
11
+
## Quick start
12
+
13
+
```
14
+
dotnet new -i React.Template
15
+
dotnet new reactnet-vanilla
16
+
dotnet run
17
+
```
18
+
19
+
## Step by step version
20
+
11
21
This tutorial covers the end-to-end process of creating a brand new ASP.NET MVC website and adding a React component in it. We will start from scratch and end with a fully functioning component. It assumes you have basic knowledge of ASP.NET MVC and using Visual Studio. This tutorial is based off the [original React tutorial](https://reactjs.org/tutorial/tutorial.html) but has been modified specifically for ReactJS.NET.
12
22
13
23
We'll be building a simple, but realistic comments box that you can drop into a blog, a basic version of the realtime comments offered by Disqus, LiveFyre or Facebook comments.
@@ -26,7 +36,7 @@ It'll also have a few neat features:
26
36
27
37
## Want to skip all this and see the source?
28
38
29
-
[It's all on GitHub](https://github.com/reactjs/React.NET/tree/master/tutorial-code).
39
+
[It's all on GitHub](https://github.com/reactjs/React.NET/tree/master/src/React.Template/reactnet-vanilla).
30
40
31
41
## Getting started
32
42
@@ -1011,7 +1021,7 @@ There used to be a section on bundling and minification in this tutorial, but un
1011
1021
1012
1022
Server-side rendering means that your application initially renders the components on the server-side, rather than fetching data from the server and rendering using the client. Server-side rendering enhances the performance of your application since the user will see the initial state immediately.
1013
1023
1014
-
We need to make some modifications to `CommentBox` to support server-side rendering. Firstly, we need to accept an `initialData` prop, which will be used to set the initial state of the component, rather than doing an AJAX request. We also need to remove the initial `loadCommentsFromServer` call from `componentDidMount`, since it is no longer required.
1024
+
We need to make some modifications to `CommentBox` to support server-side rendering. Firstly, we need to accept an `initialData` prop, which will be used to set the initial state of the component, rather than doing an AJAX request. We also need to remove the initial `loadCommentsFromServer` call from `componentDidMount`, since it is no longer required.
0 commit comments