Posts

My study notes, how-to guide and random stuff.

  • TS Basic: Typing Errors in Try-Catch

    March 24, 2025

    Sometimes you don’t really know what error your backend or API is providing so Typescript will question the type on your try...catch block your using so this are the different types you can use.

  • TS Basic: Utilities

    March 19, 2025

    Type utilities you can use to transform types or make them more reusable. These are set of built-in generic types.

  • TS Basic: Narrowing

    February 26, 2025

    Narrowing refers to the process of refining the type of a variable or expression based on certain condition. It’s allow us to filter more specific assertions about the type of a value enabling better type checking.

  • TIL: text-decoration-offset

    October 22, 2024

    CSS property that add spacing on your underlined text.

  • TS Basic: Type VS Interface

    September 19, 2024

    When do we use type vs interface? Which should we use? When do we use type and interface? And why I’m starting my post like this? I read too many self-help books I guess.

  • TS Basic: Typing Promises and Async Request

    September 13, 2024

    What if our data is coming from an API? How do we ensure we have type-safe on our `async` function data?

  • React Query Basic: Query Lifecycle

    July 16, 2024

    I never really created my own loading and error handling before without using React query.

  • React Query Basic

    July 8, 2024

    I’ve been using React Query for some time now but didn’t really understand it as I’ve used my old company project code in React Query and used it on my other projects without knowing why the code does that.

  • TS for React: Prop Types

    October 21, 2023

    Here are some basic type and useful prop types when using Typescript in React.

  • Learning React Context API

    September 10, 2023

    Context API is a feature added in Reacy 16.3 that allows to share states across the entire application.

💻 What I'm working on

  • Tasks List

    In Progress

    A task list application for storing work-related tasks and notes. Unlike a simple to-do list application this will be able to add categories and priorities for sorting and reporting purposes.