React
React Development
Guidance for building React applications with modern patterns.
Hooks Reference
Built-in Hooks
| Hook | Purpose | When to Use |
|---|---|---|
| useState | Local state | Simple values, toggles, form inputs |
| useReducer | Complex state | Multiple sub-values, state machines |
| useEffect | Side effects | Data fetching, subscriptions, DOM manipulation |
| useContext | Consume context | Theme, auth, global state |
| useRef | Mutable reference | DOM access, persist values across renders |
| useMemo | Memoize value | Expensive calculations |
| useCallback | Memoize function | Stable callbacks for child components |
More from eyadsibai/ltk
document-processing
Use when working with "PDF", "Excel", "Word", "PowerPoint", "XLSX", "DOCX", "PPTX", "spreadsheets", "presentations", "extract text", "merge documents", "convert documents", or asking about "office document manipulation
892file-organization
Use when "organizing files", "cleaning up folders", "finding duplicates", "structuring directories", or asking about "Downloads cleanup", "folder structure", "file management
336literature-review
Use when "literature review", "research synthesis", "systematic review", "academic search", or asking about "find papers", "cite sources", "research gaps", "meta-analysis", "bibliography
226resume-generator
Use when "tailoring resume", "job application", "CV customization", "ATS optimization", or asking about "resume writing", "career transition", "job description matching
138content-writing
Use when "writing articles", "blog posts", "content creation", "research writing", "technical writing", or asking about "outlining", "citations", "improving hooks", "writing feedback
120agent-browser
Use when automating browser interactions via CLI, filling forms, taking screenshots, scraping pages, or asking about "agent-browser", "browser automation", "headless browser", "web scraping", "form filling", "Vercel browser
103