How to Import a JSON file in Typescript
To import a JSON file in typescript you have to enable two settings in tsconfig.json: esModuleInterop and resolveJsonModule.
Read MoreTo import a JSON file in typescript you have to enable two settings in tsconfig.json: esModuleInterop and resolveJsonModule.
Read MoreLearn how to build multi-page forms with Formik and NextJS. Retain the form state across multiple tabs and routes using shallow routing.
Read MoreLearn how to flatten objects in javascript and transform it into dot notation. Flatten deeply nested objects, with arrays, and whatnot.
Read MoreLearn how to send only modified or changes values in Formik in deeply nested objects. Remove the unchanged values!
Read MoreLearn the best practices when using redirects in NextJS. When and how to redirect inside getStaticProps, getServerSideProps, middleware, API routes and next.config.js
Read MoreLearn how to redirect to 404 Page when using getServerSideProps and getStaticProps Dynamic Routes.
Read MoreIn this tutorial we're going to learn how to parse and get fully-typed NextJS query parameters in Typescript.
Read MoreLearn how to sort an array of objects in TypeScript. Implement a dynamic compare function to sort an array of objects dynamically.
Read MoreLearn how to build a React table of contents component that works on desktop and mobile using Typescript, React, and DaisyUI!
Read MoreIn this article, I will show you how to track the scroll direction inside an intersection observer in React. It can be used when implementing a Table of Contents component.
Read MoreLearn how to build a 6-digit react otp input and automatic submission through WebOTP API in a React Application.
Read MoreThis tutorial shows you three ways to escape special characters in query strings in javascript.
Read More