React Questions 4 total
React ×
0
0
answers
1What is the difference between useCallback and useMemo in React?
Both are React hooks for performance optimisation — they prevent unnecessary recalculations:
**useMemo — memoises a VALUE:**
```jsx
con...
0
0
answers
2What is the MERN stack and how does it work together?
MERN is a full-stack JavaScript framework combining 4 technologies:
**M — MongoDB:** NoSQL database (stores data as JSON documents)
**E �...
0
0
answers
3What is the difference between useState and useEffect in React?
**useState** — manages state (data that can change over time)
**useEffect** — handles side effects (API calls, subscriptions, timers)
`...
0
0
answers
4What is the difference between React and Angular?
| Feature | React | Angular |
|---|---|---|
| Type | Library | Full framework |
| Language | JavaScript | TypeScript |
| Learning curve | Mo...