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: Documentation/Tutorial.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ namespace Sample.Client
135
135
136
136
## Displaying state in the user interface
137
137
138
-
1. Edit `Pages\Counter.razor` as follows
138
+
1. Edit `Pages/Counter.razor` as follows
139
139
2. Inherit from BlazorStateComponent `@inherits BlazorStateComponent`, to do that you need to also add `@using BlazorState`
140
140
3. Next add a `CounterState` property that gets the State from the store `GetState<CounterState>()`, this will require you add `@using Sample.Client.Features.Counter` also.
141
141
4. change `currentCount` to pull the Count from state. `int currentCount => CounterState.Count;`
@@ -185,7 +185,7 @@ The `Action` is then handled by a `Handler` which can freely mutate the state.
185
185
186
186
## Create the `IncrementCounterAction`
187
187
188
-
1. In the Client project ensure the path `Features\Counter\Actions\IncrementCount` folder.
188
+
1. In the Client project ensure the path `Features/Counter/Actions/IncrementCount` folder.
189
189
2. In this folder create a class named `IncrementCountAction.cs`.
0 commit comments