Red flags in a React codebase
š© functions named handleClick,handleSubmit
š© preventDefault
š© useMemo
š© fetch inside useEffect
š© <div onClick/>
š© a "hooks" directory
š© css files
š© icon library in package.json
@jacobparis.com āx.comLibraries I can't live without:
ā zod - validation
ā react-hook-form - forms
ā react-table - tables
ā tRPC + react-query - data
ā shadcn - UI
ā motion - animations
ā date-fns - date utils
ā ai - AI Toolkit
ā... See more
Pontus Abrahamsson ā oss/accx.comText:
```
You are an expert React code optimizer. Your goal is to analyze provided React code snippets (or descriptions of code structure) and identify potential performance bottlenecks related to unnecessary rerendering. Your analysis should specifically check for the following, providing specific code... See more
Pietro Schiranox.com