Skip to content
项目

关于

用于编译 JSX 和在服务器端渲染 React 组件的 .NET 库

网站与应用开发

这些数字如何统计

可以做什么

  • On-the-fly JSX to JavaScript compilation via Babel
  • ASP.NET Bundling and Minification
  • CSS-in-JS libraries
  • Custom JS logic via implementing IRenderFunctions and passing to Html.React

实测星标增长

24小时
0
7天
-1
15天
-4
1个月
-4

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

ReactJS.NET

ReactJS.NET is a library that makes it easier to use Babel along with Facebook's React and JSX from C#.

.NET Core Desktop NuGet version Download count

Features

Quick Start

dotnet new -i React.Template
dotnet new reactnet-vanilla
dotnet run

Planning on using require or import module syntax in your application? Use the reactnet-webpack template instead for webpack support.

See also:

Building Manually and Contributing

When building your own copy of ReactJS.NET (for example, if implementing a new feature or fixing a bug), your first build always needs to be done using the build script (dev-build.bat) as this generates a few files required by the build (such as SharedAssemblyVersionInfo.cs). Once this build is completed, you can open React.sln in Visual Studio and compile directly from Visual Studio. Please refer to the documentation page on contributing for more information on contributing to ReactJS.NET.

Note that the build requires you to have Git installed. If you do not want to install Git, you may remove the GitVersion task from build.proj.

探索相关项目

加载中…