Tan Li Hau

Tan Li Hau @tanhauhau

About: Frontend engineer at Shopee Singapore

Location:
Singapore
Joined:
Nov 30, 2018

Tan Li Hau
articles - 28 total

2 ways to pass data into Svelte slots

Let's see how we can pass dynamic data to the slotted contents

Learn More 21 2May 12 '21

Explain Svelte slots like I'm five

Just like element, you can pass child element to Components. However, the child elements passed to a Component won't show up on the screen, unless explicitly specified using a `<slot>` element in the Component

Learn More 10 2May 6 '21

2 amazing use case of tick() in Svelte that you must know

tick() is a function that returns a promise that resolves as soon as any pending state changes have been applied to the DOM. Here's 2 great examples of using tick() that you shouldn't miss out on!

Learn More 26 0May 5 '21

7 Event Modifiers in Svelte You Must Know

Why do we need event modifiers at all? What you'll learn will changed your mind

Learn More 35 1Apr 7 '21

Notes: The CSS Podcast #027 - "Houdini Series: Typed Object Model"

Podcast Link to the Podcast Notes CSS Typed Object Model (Typed OM)...

Learn More 9 1Nov 21 '20

Notes: The CSS Podcast #026 - "Houdini Series: Properties & Values"

Podcast Link to the Podcast Notes CSS Houdini Umbrella term that c...

Learn More 6 0Nov 15 '20

Contributing to Svelte - Implement {#key}

Background Unlike the other contributing to Svelte posts [1] [2], which I wrote it while i...

Learn More 1 0Oct 15 '20

Compile Svelte in your head ({#if})

In this article, we are going to cover our first logic block, the if block. To make sure we are on t...

Learn More 5 0Sep 22 '20

Contributing to Svelte - Fixing issue #5012

Background Following Contributing to Svelte - Fixing issue #4392, I find it interesting to...

Learn More 1 0Oct 15 '20

Contributing to Svelte - Fixing issue #4392

Background As Svelte gains more attention, I find that more and more people are interested...

Learn More 1 0Oct 15 '20

Compile Svelte in your head (on:, bind: and use:)

Previously, I detailed how $$invalidate works, described how bitmask was used in $$invalidate, and ex...

Learn More 10 0May 26 '20

The Svelte Compiler Handbook

Who is this for? Anyone who is interested in the Svelte compilation process wants to ge...

Learn More 14 0Apr 21 '20

Compile Svelte in your head ($$invalidate)

Previously, when I mentioned the $$invalidate function, I explained that the $$invalidate function wo...

Learn More 10 0Mar 31 '20

Compile Svelte in your head

Background A while ago, @swyx came back to Singapore and visited us in Shopee Singapore (W...

Learn More 27 0Mar 15 '20

Hydrating text content from Server-Side Rendering

Disclaimer I am not going to talk about what is hydration, to know more about client-side...

Learn More 8 0Mar 15 '20

Personalised Development Workspace With Chrome Extension

Abstract Chrome extension allows us to add features to our browser, personalize our develo...

Learn More 5 0Feb 11 '20

Reactivity in Web Frameworks (Part 1)

What is Reactivity? Reactivity is the ability of a web framework to update your view whene...

Learn More 17 1Jan 8 '20

Super Silly Hackathon 2019

I just came back from the Super Silly Hackathon 2019. It was my second time to participate in this Su...

Learn More 7 0Jan 8 '20

JSON Parser with JavaScript

The interview question of the week for this week on Cassidoo’s weekly newsletter is, Write a functi...

Learn More 9 0Jan 15 '20

Manipulating AST with JavaScript

How to traverse AST; How to add, replace and remove AST nodes; How to create AST nodes?

Learn More 16 0Nov 24 '19

Babel macros

Custom JavaScript syntax is hard to maintain, custom babel transform plugin is no better. That's why we need Babel macros.

Learn More 6 0Oct 9 '19

Creating custom JavaScript syntax with Babel

Forking babel parser and creating your custom JavaScript syntax isn't as hard as you think.

Learn More 10 0Sep 29 '19

I wrote my module bundler

In my previous article, I explained how module bundler works. In this article, I am going to show you how I wrote my module bundler...

Learn More 8 0Sep 22 '19

Solving Nonogram with Code

...said me to my colleague, "If I could come up with a program to solve this, I would stop playing it"

Learn More 8 0Sep 24 '19

Step-by-step guide for writing a custom babel transformation

Writing your first babel plugin

Learn More 16 0Sep 20 '19

Git commits went missing after a rebase

What happened when you do a rebase

Learn More 9 0Sep 3 '19

What is module bundler and how does it work?

understand how module bundler works

Learn More 40 0Aug 30 '19

Errors encountered upgrading Flow v0.85

and how we solved them

Learn More 5 0Aug 26 '19