Skip to content

v1.0.0-preview6-04

Pre-release
Pre-release
Compare
Choose a tag to compare
@chanan chanan released this 02 Jul 15:30
· 133 commits to master since this release

Support for Server Side Blazor!

This release closes issue: #2

For Server Side Blazor to work, you should use OnAfterRenderAsync() like so:

<p class="@div">If everything is working right, the background of this paragraph tag should be pink.</p>

@code {
    private string div;

    protected override async Task OnAfterRenderAsync()
    {
       div = await Styled.Css("background-color: pink;");
       StateHasChanged();
    }
}