79647661

Date: 2025-06-01 15:14:34
Score: 1.5
Natty:
Report link

Instead of using a router, just use a state variable in the parent component (VideoPageTabs) to track whether to show the TagList or the new component (ComponentA). Pass a callback from the parent to TagList so it can tell the parent when a list item is clicked. On click, the parent flips the state variable to swap out TagList with ComponentA. This approach keeps everything in the same page/tab and doesn’t need URL changes (no routing).

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: It Bank