We went through steps to enable code splitting in Part 1. As mentioned in Part 1, it’s not working right at server-side rendering yet. What exactly the problem is? Exercise: see the problem with actual code You can skip this section if you already know the problem or don’t bother to run/test with actual code. You can see the problem…
-
-
React code splitting and server-side rendering with ASP.NET Core – Part 1
Thanks to [crayon-6477790d8b4aa621081060-i/], code splitting has become easy with dynamic [crayon-6477790d8b4af655814952-i/]. However, for code splitting to work together with server-side rendering, things become more tricky and not that straight forward because at the server side, the modules have to be loaded synchronously in order to render the page correctly. There are several different available loaders that can help get the…
-
redux-first-router vs redux-little-router for React/Redux SPA
Client side routing is definitely one of the center piece of gears that empowers single page application. For our [crayon-6477790d8c717234863718-i/] projects, we have been using [crayon-6477790d8c71d065215464-i/] that fits in reasonably well. Recently, I had a chance to hand on evaluating and trying out another router package, [crayon-6477790d8c71e450438666-i/]. Both packages are designed with [crayon-6477790d8c71f659798781-i/] in mind and so they both work and integrate well with…
-
Improve React/Redux SPA Performance, with ASP.NET Core – Part 1
Fast web experience is what users expect nowadays. Fast mobile web experience is essential when most people are accessing websites with their mobile devices. And it’s only becoming more critical now that google takes website loading speed as a ranking factor. Improving/maximizing [crayon-6477790d8cb44754648606-i/] application performance therefore should be treated as a top priority. Minimize unnecessary re-render This could possibly the most…
-
React async rendering, getting prepared
React async rendering, a new exciting built in feature, is coming in react version 17. While we don’t know the exact time frame, it may well be very soon. For existing projects, most likely you will have some preparation and migration works to finish before you can take advantage of this new cool feature. We finished the migration and sure…
-
route transition for redux-little-router, react ASP.NET Core
[crayon-6477790d8d434043804471-i/] is a good client side routing library for project that uses [crayon-6477790d8d438428279365-i/] and [crayon-6477790d8d439866012774-i/]. However, adding transition to the route pages could be tricky. [crayon-6477790d8d43a742102546-i/] provides a react component [crayon-6477790d8d43b758542063-i/] for use to define the route pages. Each route page component will be wrapped by a [crayon-6477790d8d43c580821964-i/] component. As far as I know (after looking at the coding), [crayon-6477790d8d43d499699973-i/] component will render the route page…
-
Publish npm Typescript react component
We have a couple small react component libraries to share. In addition to host the libraries at github.com, the best approach is to publish them at npm so that others can readily use them. So I went through the process to publish npm typescript module, documented it and share my steps to whoever might want to do the same. There…
-
react route transition css: css-transitioner
css-transitioner is a small footprint React wrapper component to enable react route transition (i.e. perform transition when changing route page). It works with client side routing to switch between pages. It all started out when we wanted to add transition to our page routing, instead of switching pages in a flash. However, we couldn’t find an easy way to make…
-
Hot Module Replacement (HMR) with React, ASP.NET Core
Hot module replacement (HMR) or hot loading is a feature of webpack allowing real time update of modules while the application is running, which could significantly speed up development. Enable Hot module replacement Goal: To enable HMR in the React application in a simple setup. Base project code: Example code from React with Typescript, Get started with ASP.NET Core serves as starting…
-
React Routing with redux-little-router, ASP.NET Core SPA
React Routing with redux-little-router is part 5 of a 5 parts React with ASP.NET Core series. This series will show you the setup necessary for building React single page application with routing and server-side rendering. For traditional web site that server is responsible to render all web pages, each page change requires browser to request and re-run the page from…