---
title: "Jason Chen (@jason60810) | Hashnode"
description: "Nothing is true, everything is permitted. Read the latest articles by Jason Chen on Hashnode."
url: "https://hashnode.com/@jason60810"
---

@jason60810

# Jason Chen

@jason60810 · Joined October 2022

Nothing is true, everything is permitted.

### [Common Mistakes in Conditional Rendering](https://jason60810.hashnode.dev/common-mistakes-in-conditional-rendering?utm_source=hashnode&utm_medium=feed)

https://youtu.be/Rr5AqASIyxw TL;DR When using 0 in JSX, although it's falsy, it still gets rendered. Official documentation specifically warns to be careful Logical AND operator (&&) Be especially mindful of the usage of the number 0 when using...

1 min read · [jason60810.hashnode.dev](https://jason60810.hashnode.dev/common-mistakes-in-conditional-rendering?utm_source=hashnode&utm_medium=feed)

[Aug 20, 2023](https://hashnode.com/posts/common-mistakes-in-conditional-rendering/64e1a8edb40dfbd834c8abf5)

### [Always Use a Custom Hook for Context API, Not useContext (React Context API, TypeScript)](https://jason60810.hashnode.dev/always-use-a-custom-hook-for-context-api-not-usecontext-react-context-api-typescript?utm_source=hashnode&utm_medium=feed)

https://youtu.be/I7dwJxGuGYQ Step 1: Create the Theme Context First, we need to create the context for our theme. import React, { createContext, useState } from 'react'; type Theme = 'dark' | 'light'; type ThemeContextProps = { theme: Theme; s...

2 min read · [jason60810.hashnode.dev](https://jason60810.hashnode.dev/always-use-a-custom-hook-for-context-api-not-usecontext-react-context-api-typescript?utm_source=hashnode&utm_medium=feed)

[Aug 13, 2023](https://hashnode.com/posts/always-use-a-custom-hook-for-context-api-not-usecontext-react-context-api-typescript/64d8b9b4603bcfdcca3bf040)

### [LeetCode - 21. Merge Two Sorted Lists](https://jason60810.hashnode.dev/leetcode-21-merge-two-sorted-lists?utm_source=hashnode&utm_medium=feed)

Solution with comments //=========== visualization ==================== Initial state: l1: { val: 1, next: { val: 2, next: { val: 4, next: null } } } l2: { val: 1, next: { val: 3, next: { val: 4, next: null } } } //=========== visualization...

5 min read · [jason60810.hashnode.dev](https://jason60810.hashnode.dev/leetcode-21-merge-two-sorted-lists?utm_source=hashnode&utm_medium=feed)

[Apr 9, 2023](https://hashnode.com/posts/leetcode-21-merge-two-sorted-lists/64323fe26f56e85d78b466aa)

### [Using REST APIs with Protobuf in a Next.js and TypeScript App (Backend in Go)](https://jason60810.hashnode.dev/using-rest-apis-with-protobuf-in-a-nextjs-and-typescript-app-backend-in-go?utm_source=hashnode&utm_medium=feed)

Compiling .proto Files into TypeScript Using ts-proto In my experience working with an Nx monorepo Next.js project on Windows, I encountered a path issue that prevented me from compiling the .proto file directly. To resolve this problem, I had to cre...

2 min read · [jason60810.hashnode.dev](https://jason60810.hashnode.dev/using-rest-apis-with-protobuf-in-a-nextjs-and-typescript-app-backend-in-go?utm_source=hashnode&utm_medium=feed)

[Mar 26, 2023](https://hashnode.com/posts/using-rest-apis-with-protobuf-in-a-nextjs-and-typescript-app-backend-in-go/642029b66b8a915bfb501504)

### [Next.js Tutorial For Beginners](https://jason60810.hashnode.dev/nextjs-tutorial-for-beginners?utm_source=hashnode&utm_medium=feed)

https://youtu.be/qwhMyVVnmKM nextjs-youtube-demo Link Global Layout and CSS Nav dynamic className base on the route getStaticProps export async function getStaticProps() { const response = await fetch("https://learnwebcode.github.io/json-examp...

2 min read · [jason60810.hashnode.dev](https://jason60810.hashnode.dev/nextjs-tutorial-for-beginners?utm_source=hashnode&utm_medium=feed)

[Mar 12, 2023](https://hashnode.com/posts/nextjs-tutorial-for-beginners/640da7cab25354995d5c8c0b)
