Engrain by ByteRush

MC.02.01 JuniorCore — asked often

Toggles, counters, accordions and tabs

Comes up in: UI coding, Machine coding

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

  • state shape
  • keyboard support (APG patterns)
  • controlled vs uncontrolled API
  • animation of height

Words you will know

—

What you will practise

  • accordion (single/multi open)
  • tabs (keyboard)
  • star rating
  • like button with optimistic state

Interview questions this answers

  • How should keyboard navigation work in tabs?
  • Check for a winner on an N×N tic-tac-toe board efficiently.