PinnedRobert S (codeBelt)inBetter ProgrammingPrevent Route Changes and Unsaved Data Loss in Next.jsWarn users about unsaved changes before leaving the web page in Next.js·5 min read·Feb 7, 2023--7--7
PinnedRobert S (codeBelt)inBetter ProgrammingUpload Files to Next.js With API RoutesHow to use React, next-connect, Multer, and axios to upload files to your Next.js app·5 min read·Jan 7, 2021--6--6
Robert S (codeBelt)inJavaScript in Plain EnglishTypeScript: How to Require Generic Inferred Type Parameters in FunctionsExplore the power of TypeScript generics with the NoInfer type to enforce specific types for inferred parameters.·3 min read·Nov 12, 2023----
Robert S (codeBelt)inJavaScript in Plain EnglishGet the First, Last and Middle Elements of an Array using JavaScriptGet the first, middle, and last elements of an array using ES6.·3 min read·Feb 8, 2022----
Robert S (codeBelt)inBetter ProgrammingNext.js: Reducing Bundle Size When Using Third-Party LibrariesAn example of how to improve bundle size with Next.js·5 min read·Dec 10, 2020--2--2
Robert S (codeBelt)inBetter ProgrammingWhat Is React Teleportation?Transporting React components to other React components with portals·3 min read·Oct 20, 2020--1--1
Robert S (codeBelt)inBetter ProgrammingImproving Redux Reducers in 3 WaysWith objects, classes, and functional programming·3 min read·Nov 19, 2019--2--2
Robert S (codeBelt)inITNEXTSynchronize Visuals with Asynchronous API RequestsHere is a nice technique to show the loading indictor for a minimum amount of time with asynchronous api requests.·2 min read·Nov 9, 2019--1--1
Robert S (codeBelt)inITNEXTReact/Redux API Loading & ErrorsManaging API requesting states and handling errors nicely·5 min read·Oct 1, 2019----
Robert S (codeBelt)inBetter ProgrammingMy Awesome React/Redux StructureLearn how to architect a React/Redux application in a classy way·11 min read·Oct 1, 2019--5--5