Why React; components and JSX
Comes up in: Recruiter screen, React
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- UI as a function of state
- components
- JSX rules (one root,
className, expressions in{}) - rendering lists with
key - conditional rendering
- creating a project with Vite
Words you will know
What you will practise
- profile card list
Interview questions this answers
- Why do lists need a
keyprop? Why is the array index a poor key when items can be reordered? - Why should you not mutate state directly?