Sam HoHow to write tests using JEST: the Best PracticeWriting test script is an essential skill for a senior engineer, and when it comes to testing React components, Jest is one of the most…Aug 28Aug 28
Sam HoMocking GraphQL request in React using Mock Service WorkerLearn how to mock GraphQL request in your React project using Mock Service Worker (MSW).Aug 14Aug 14
Sam HoHow to build AI Chatbot on your website with OllamaLearn how to build a web chatbot using Next.js with Ollama. Step by step example with source code.Jul 221Jul 221
Sam HoZustand: How is it better than React Context (with an example)As a web engineer, you may be in a situation where you need to manage the state of your application. When comes to state management, there…Apr 122Apr 122
Sam HoSignals — Future of React State ManagementPreact/Signals is a library which is getting more popular. It shifts frontend development towards a more intuitive way of handling state.Mar 13Mar 13
Sam HoHow to build your self-hosted ChatbotNo third-party API, you own your data. Using Amazon Sagemaker. Running on Web interface. With code and demo.Dec 26, 2023Dec 26, 2023
Sam HoHow do I make use of ChatGPT to review my codeAs a software engineer, I know that I should check my code before commit. But I don’t like code review. It is a tedious and time-consuming…Apr 2, 20233Apr 2, 20233
Sam Ho10 Essential Generic Types in the Standard Library of TypeScriptThis article will give you an overview of the generic types defined in the standard library of TypeScript.Mar 9, 2023Mar 9, 2023
Sam HoReact Shopping Cart with Custom HooksLearn basic concepts of React custom hooks by building a simple shopping cart app.Feb 8, 2023Feb 8, 2023