Skip to content

Commit d62dc62

Browse files
committed
Fix the example for server side only rendering
1 parent 0d26557 commit d62dc62

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ meaning your initial render will be super fast.
7373
For a more in-depth example, take a look at the included sample application
7474
(**React.Samples.Mvc4**).
7575

76-
5 - How not to render the React data attributes
76+
5 - Server-side only rendering
7777

78-
If thre is no need to have a React application client side and you just want to use the server side rendering but without the React specific data attributes call `Html.React` and pass renderReactAttributes parameter as false.
78+
If there is no need to have a React application client side and you just want to use the server side rendering but without the React specific data attributes call `Html.React` and pass serverOnly parameter as true.
7979

8080
```csharp
8181
@Html.React("HelloWorld", new
8282
{
83-
name = "Daniel",
84-
renderReactAttributes: false
85-
})
83+
name = "Daniel"
84+
}
85+
serverOnly:true)
8686
```
8787

8888
And the Html mark up will look like the one following which is a lot cleaner. In this case there is no need to load the React script or call the `Html.ReactInitJavaScript()` method.

0 commit comments

Comments
 (0)