How to Become a Racist
Sep 29, 2019
Every time you try to use race to making a us-versus-them comparison, you are introducing the risk of becoming a racist.
Reduce redux-connect Typescript boilerplate
Sep 21, 2019
Use Typescript ReturnType to reduce your Redux connect boilerplate
@content: SASS equivalent of React children
Sep 19, 2019
Use @content to inject arbitrary content into your SASS @mixin
Container-Presenter Pattern Revisited
Sep 15, 2019
Instead of separating container-presenter components based on arbitrary rules, separate components into business components and UI components.
Custom Hooks: useTransientState
Sep 05, 2019
A custom hooks to declare state that will restore to its steady-state value after some delay. This will be useful when you want to show some UI element temporarily and then hide it after some delay.
Provide Fallback UI with useLayoutEffect in Gatsby
Jul 14, 2019
Embracing graceful degradation in Gatsby site by providing fallback UI without JS with useLayoutEffect hooks
Choose What Allows You to Proceed Now, Optimize Later
Jun 21, 2019
Premature optimization is not just bad for programming, it's bad for life decision too.
Joining a Hackathon
May 05, 2019
Personal notes on my recent experience of joining Can You Hack It hackathon.
Creating a Simple Event Bus
Apr 09, 2019
Adding Types for npm Packages
Apr 01, 2019
How to add custom types for npm packages that doesn't have declaration nor DefinitelyTyped support.
Be Human While You Code
Mar 19, 2019
Even when your colleague or boss doesn't care, write accessible code. Because you can. Because you should. Because you're human, and you care about other human too.
Using Web Component With React
Mar 17, 2019
Using web component in React requires some boilerplates to make it work, trying to abstract that boilerplate has a limitation. With React hooks, it's much less boiletplate and the abstraction is no longer needed.
Using Typescript Type Guard to Narrow Down Type
Nov 26, 2018
Using custom type guard allow us to create reusable checking that narrow down the type of a variable
Monitoring Government Website for Content Change
Oct 24, 2018
My experience on developing a web-scraping application that will notify subscribers for any changes of a government website
Accessible HTML File Input
Sep 26, 2018
By being more thoughtful, we can have a file input that is beautiful but still accessible.
My First Tech Talk: Render Props & Higher Order Components
Aug 20, 2018
A note on my first technical talk on React. I find the act of preparing and delivering the talk satisfying.
How to bargain in marketplace like a tactful auntie
Jun 24, 2018
To bargain successfully in marketplace, make abrupt concession and threaten to flip-table effectively.
How to say no to friends and family that want to borrow money
Jun 23, 2018
When friends/family want to borrow money from you, instead of asking how much they want to borrow first, ask why they want to borrow, and respond accordingly.
React Patterns: Container-Presenter
Jun 17, 2018
There are a few design patterns of React component, and the easiest one is the Component-Presenter pattern, which is actually to separate mapping/states/transformation from the rendered content
Introduction to React with Typescript
May 10, 2018
Using typescript allow static typechecking and intellisense in your React application, and it is easy to get started.