Published infredwong-itRecord vs Mapped type syntaxI wanted to type the modal variable and I faced some challenge time.Oct 30Oct 30
Published infredwong-itStyle grid template area with Tailwind cssOriginally I styled the layout with module.cssOct 8Oct 8
Published infredwong-itDisabled button doesn’t show Radix UI TooltipI had a Button wrapped by the Tooltip but it didn’t display the tooltip correctly.Oct 3Oct 3
Published infredwong-itNext.js — useTranslation use correct packageI implemented the Internationalization (i18n) with useTranslation in my Next.js project. I had everything setup properly and got this…Jul 8Jul 8
Published infredwong-itCSS — truncate multiple line to certain line end with …There is a requirement that need to truncate the multiple line sentences to 4 line, with a … at the end.Apr 18Apr 18
Published infredwong-itReact testing setup — jsx transform issueI tried to setup jest testing with react testing library in the Next.js TypeScript project, and I learnt something today.Feb 22Feb 22
Published infredwong-itStorybook — configure with NextRouterI got this error message in storybook today.May 31, 2023May 31, 2023
Published infredwong-itBe careful with truthy check and short circuitI wrote this piece of code and received a very good feedback from the PR review.May 12, 2023May 12, 2023
Published infredwong-itSVG Icon— icon in sync, pattern id issueI created 2 svg icons with the same pattern id. One of them is close icon and the other is timer icon. I found out that the close icon…May 9, 2023May 9, 2023