notes.dunaevskiy.devTanStack Query and Mutation templates for React RSC/SSR/RCCRecommendations on how to structure TanStack queries and mutations. Provided templates define hooks with extensible interfaces, supporting custom fetch functions per request. RSC/SSR/RCC compatible. Expectations Compatible with some RSC/SSR framewor...Sep 27, 2024·7 min read
notes.dunaevskiy.devCheat Sheet: ni - universal CLI alias for npm/yarn/pnpm/bunTool ni is a utility that removes the need to recognize a type of package manager in JS projects (npm, yarn, pnpm, bun). It provides a unified interface and uses appropriate commands instead (calls yarn in yarn projects, npm in npm projects, etc.). L...Aug 11, 2024·1 min read
notes.dunaevskiy.devReact folder structure recommendations (based on Next.js AppRouter)Various React applications require various structures. Let's define a set of advice on how to think about project organisation and apply it to a medium-sized project. These recommendations aren't a silver bullet for every project. Apart from the "cas...Jun 22, 2024·8 min read
notes.dunaevskiy.devCheat Sheet: JavaScript (TypeScript) variable naming conventionRecommendations on how to unify naming convention within a code – formats, acronyms and abbreviations, value-based prefixes, event handlers, etc. Mainly for vanilla TypeScript with a bit of React. Variable name formats It is good to restrict name for...Jun 1, 2024·5 min read