🚀 🚀 We're pleased to announce the release of ReactJS.NET 5.2. In this release:
⚡️ This update contains a brand new feature - templates! This feature makes it much easier to get started on a new project.
To start a new ASP.NET Core project using React and server-side rendering:
dotnet new -i React.Template dotnet new reactnet-webpack dotnet run
reactnet-vanillatemplate is also available for projects that don't need webpack.
👍 Webpack Asset Manifest Support
💅 If you've ever wanted to use hashes in the filenames of generated assets, this feature is for you! When using Webpack and
webpack-manifest-plugin, it's now possible to render the script and style tags automatically from the generated asset manifest. This can be especially helpful when using caching headers to instruct the client not to refetch these static assets from the server.
If using the filename pattern
'[name].[contenthash:8].js', webpack will emit files that look like this:
🔧 Configure reading these files server-side with
distis the directory where webpack emits the built assets.
In your view code, call:
@Html.ReactGetStylePaths() // in the doucment head next to other stylesheets @Html.ReactGetScriptPaths() // right before the body closing tag
Next, define an asset manifest format in your webpack config. Check out the sample webpack config for the format the asset manifest is expected to follow.
💅 At render time, the asset manifest will be read from the
distdirectory and be mapped into
styletags for the browser to download.
reactnet-webpacksample uses this layout, so give it a try if you're curious!
If this library has made a difference to you in either a work or personal project, I'd love to hear from you. We don't get paid at all to work on this, it's just for fun! Drop a line @dustinsoftware or @Daniel15
🚀 🚀 We're pleased to announce the release of ReactJS.NET 5.1.2. A few small updates in this release:
- ⚡️ .NET Core 3.0 support. The tutorial project has also been updated to demonstrate the (simple!) migration path.
- ⚡️ React and ReactDOM updated to 16.12.0
- 🛠 Fix missing query parameter mapping for React.Router - thanks @mattywong
Please report any bugs in the issue tracker.
🚀 We're pleased to announce the release of ReactJS.NET 5.0.0. This release brings a few new features as well as a bunch of minor improvements:
- ⚡️ Typescript compilation of .tsx components, which also updates to Babel 7 (#763)
- Output caching improvements - (#858)
- 👍 JSON.NET v12 support - (#779)
- 👍 .NET Core 3 preview support - (#791)
- 👍 Source link and symbol server support - (#830), ebb22ee
- ⚡️ React and ReactDOM updated to 16.8.6
🚀 The release packages are available via NuGet.
🍱 Binaries available from NuGet directly 🚀
🆕 New to 4.1:
- ⚡️ Updated bundled version of React to 16.8.4, which brings support for hooks
- ⚡️ Updated babel to 6.26.3. We're working on enabling opt-in support for Babel 7 as well, but if you need this today, please use the webpack integration.
- ⚡️ Updated the ASP.NET and .NET Core samples to demonstrate integrating third party libraries, such as Reactstrap.
🆕 New to 4.0:
- ⚡️ Updated bundled version of React to 16.7 (you can always provide your own version of React if you need a newer version)
- This library is now MIT licensed
- 👍 Server side rendering support for
- Lots of contributions from the community
👀 We'd like to hear from you! If there are things you'd like to see added, please send feedback via Github Issues. We're a limited team and may not be able to implement what you'd like to see, but still want to hear how this project is being used and where it could be improved.
v4.1.0February 16, 2019
v4.0.0-beta2July 21, 2018
v4.0.0-beta1July 01, 2018
v3.4.1August 14, 2018
🚀 This is a minor release with a few performance-related changes contributed by Daniil Sokolyuk:
- #529 - Cache whether component names are valid.
- #528 - Fast React ID generator.
- #532 - Avoid large object allocations and reuse everything.
A few other changes have also been included. Thanks to Dustin Masters for most of these changes:
- #558 - Fix crashes related to loading React 16.4.1
- #541 - Use
ReactDOM.hydratefor ClientOnly components. Thanks to Suhail Ansari for his first open-source contribution! :)
- #537 - Added benchmarking tool for benchmarking changes to ReactJS.NET itself.