Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
NotificationsYou must be signed in to change notification settings

marinasundstrom/BlazorBasics

Repository files navigation

A project containing various samples that demonstrate the basics ofBlazor.

This project targets Blazor WebAssembly (which is client-side).

UsesBootstrap 5 for basic styling and samples.

Links to learning resources below.

Screenshots

Goal

Providing brief but yet extensive samples demonstrating the basics of Blazor.

Answering the most common questions about building Web apps with Blazor.

When you are ready

When you feel confident in knowing the basic concepts of Blazor you can use an open-source component framework, likeMudBlazor (Material UI),Radzen, orFluent UI. They provide business-grade components.

Projects

BlazorStarterApp

The minimal required for getting started with Blazor.

Uses Bootstrap.

BlazorCounter

Several versions of theCounter component.

Demonstrates how parameters work in Blazor.

HttpClientSample

A simple demo showing how to fetch data from the web, and display it.

BlazorRouter

Demonstrates how the router works.

BlazorJSInterop

Demonstrates how to do interop between C#/.NET and JavaScript.

Requirements

To build this, you need:

Run the app

Simply:

dotnet run

or, inwatch mode

dotnet watch

This will enableHot Reload on save.

Publish the app

When you are ready to publish your app you simply run this command:

dotnet publish -c Release

This will create an optimized bundle for you.

In the process, the linker will strip out unsused dependencies in order to reduced the size.

Then you can just copy all files to your server.

Learning resources

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp