• react
    ASP.NET Core,  React,  SPA

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

    Thanks to [crayon-6284985562756798163354-i/], code splitting has become easy with dynamic [crayon-628498556275c546833748-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-6284985564eec353626647-i/] projects, we have been using [crayon-6284985564ef2632120219-i/] that fits in reasonably well. Recently, I had a chance to hand on evaluating and trying out another router package, [crayon-6284985564ef3417323575-i/]. Both packages are designed with [crayon-6284985564ef4702146635-i/] in mind and so they both work and integrate well with…

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

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

    [crayon-62849855654fa837480273-i/] is a good client side routing library for project that uses [crayon-62849855654ff085823143-i/] and [crayon-6284985565500776131756-i/]. However, adding transition to the route pages could be tricky. [crayon-6284985565501117000973-i/] provides a react component [crayon-6284985565502030618334-i/] for use to define the route pages. Each route page component will be wrapped by a [crayon-6284985565503370982297-i/] component. As far as I know (after looking at the coding), [crayon-6284985565504970763245-i/] component will render the route page…

  • react
    ASP.NET Core,  React,  Webpack

    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
    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…

  • react
    ASP.NET Core,  React

    React with Server Side Rendering, ASP.NET Core

    React with Server Side Rendering is part 4 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. With the advance of technologies and more power devices/computers, websites have evolved from simple static files, server side rendering to generate static HTML pages,…

  • react
    ASP.NET Core,  React,  Typescript,  Webpack

    React with Typescript, Get started with ASP.NET Core

    React with Typescript is part 2 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. When I first dived into migrating from traditional server side rendering towards more focus on client side rendering using React, one major decision to make was…