Skip to content

Commit

Permalink
Less unnecessary complexity in 02.getting-started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriyDurov committed Sep 8, 2024
1 parent 09cafd0 commit 8231475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/02.getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ Make sure your persistent component inherits from **PersistentComponentBase**
or

```csharp
public partial class YourComponent: PersistentComponentBase // in your .cs file
public class YourComponent: PersistentComponentBase // in your .cs file
```

#### 2. Mark state properties with **[ComponentState]** attribute

Use **ComponentStateAttribute** to mark properties that needs to be stored across full render process

```csharp
public partial class YourComponent: PersistentComponentBase
public class YourComponent: PersistentComponentBase
{
[ComponentState]
public int YourProperty { get; set; } = 0;
Expand Down

0 comments on commit 8231475

Please sign in to comment.