Ligang Yan颜力刚

Tag

react

1 post

  1. Six React ref challenges. How many can you get?When to use a ref and when to use state, why a module-level variable gets shared across components, how to drive a video and a scroll position with refs, and how forwardRef works. Six problems, each with the broken code and the fix.