• QMK/VIA - The Soul of Mechanical Keyboards

    Mechanical keyboards are loved for their tactile feedback, satisfying “tok” sound, and endless customization options. However, for me, the true magic lies not just in the hardware but in the software, particularly when it comes to smaller keyboards.

  • Loading React Component by Convention

    Next.js uses file-system based routing, meaning you can use folders and files to define routes. Basically, you don’t need to define routes, and if you access the app by a folder and file path, you can get the component. React Router can also do this. Instead of doing the following:

  • A helper funciton to render nested multiple components

    From time to time, we need to render nested multiple components in React.

  • A helper function to quickly provide service in react

    In Angular, we can inject services into components so that components can share state and communicate with each other. In React, we can use context to provide services to components too. Here is some sample code.

  • Anti-patterns of NgRx

    Mike Ryan is one of the authors of NgRx. He has a YouTube video “You might not need NgRx”, which showcases when you can use NgRx. Some people just don’t care about those use cases and use it in the wrong scenarios, writing unnecessarily complex code, which makes others hate NgRx more. While it is important to document when to use it, and how to use it, it is equally important to document when you should not use it. In this post, I am trying to document some of the anti-patterns in using NgRx.

  • 1
  • 2