PinnedThor CheninJavaScript in Plain EnglishDependency Injection for Serverless ApplicationsA brief introduction to DI and Serverless with example setup using node.js, TypeScript and AWS7 min read·Jun 14, 2023--1--1
PinnedThor CheninBits and PiecesRethinking Code ReuseAvoid Wrong Abstraction through Encapsulation and Composition8 min read·Jan 5, 2023--1--1
PinnedThor CheninBits and PiecesReact Design Patterns: Return Component From HooksA Potential New Pattern Inspired by “Partial Application”: With practical examples using Material-UI and TypeScript·6 min read·Feb 17, 2022--8--8
Thor ChenTypeScript, Zod, and MongoDB: A Guide to Data Access Layer without ORMEmbracing New Paradigms for Enhanced Data Consistency and Type Safety6 min read·Jun 14, 2023--2--2
Thor CheninJavaScript in Plain EnglishStream Chat Completion with OpenAI API using JavaScript FetchBuild your own ChatGPT with React in a typewriter style·5 min read·May 9, 2023--2--2
Thor CheninBits and PiecesThe Pitfalls of Using <Guard> or <If> Components in ReactUse Logical AND Operator (&&) or Babel Plugin Instead7 min read·Apr 12, 2023--1--1
Thor CheninAWS in Plain EnglishDeploy React Web App on AWS S3 and CloudFront using CloudFormation (via AWS SAM CLI)6 min read·Feb 28, 2023--1--1
Thor CheninJavaScript in Plain EnglishUnderstand Google reCAPTCHA with Diagrams and Code ExamplesCode examples are written in React, TypeScript, and Node.js8 min read·Dec 11, 2022----
Thor CheninJavaScript in Plain EnglishPolyfill CSS using styled-components mixins in ReactWith an example of flex gap polyfill3 min read·Feb 7, 2022----
Thor CheninJavaScript in Plain EnglishHow to listen to Formik onChange event in React?Listen to the DOM event on form component, or create observer component via useFormikContext and useEffect hook3 min read·Feb 5, 2022----