• react
    ASP.NET Core,  React,  SPA

    React code splitting and server-side rendering with ASP.NET Core – Part 1

    Thanks to [crayon-62fed07c139d9749957194-i/], code splitting has become easy with dynamic [crayon-62fed07c139df627093873-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…

  • react
    ASP.NET Core,  SPA

    Simple long polling in ASP.NET Core SPA

    Typically, ASP.NET MVC model handles requests by receiving the request, do some processing and then return the response, all within an action method. But in case of doing a long polling, we don’t have anything to return until the expected event occurs. Therefore, the long polling request needs to be able to wait for the event, without holding up the…

  • react
    ASP.NET Core,  React,  SPA

    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-62fed07c16927923657962-i/] projects, we have been using [crayon-62fed07c16930328785537-i/] that fits in reasonably well. Recently, I had a chance to hand on evaluating and trying out another router package, [crayon-62fed07c16932371563285-i/]. Both packages are designed with [crayon-62fed07c16933176992935-i/] in mind and so they both work and integrate well with…

  • react
    React,  SPA

    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-62fed07c171ba653221660-i/] application performance therefore should be treated as a top priority. Minimize unnecessary re-render This could possibly the most…

  • react
    ASP.NET Core,  CSS,  React,  SPA

    route transition for redux-little-router, react ASP.NET Core

    [crayon-62fed07c17a03747568011-i/] is a good client side routing library for project that uses [crayon-62fed07c17a0b572972212-i/] and [crayon-62fed07c17a0d581510972-i/]. However, adding transition to the route pages could be tricky. [crayon-62fed07c17a0e037730461-i/] provides a react component [crayon-62fed07c17a10333287469-i/] for use to define the route pages. Each route page component will be wrapped by a [crayon-62fed07c17a11603308399-i/] component. As far as I know (after looking at the coding), [crayon-62fed07c17a12971008406-i/] component will render the route page…

  • react
    ASP.NET Core,  React,  SPA

    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…