Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by robertoandred

6 months ago

Using HTML features doesn't have to mean manipulating another component's nodes.

3 comments

robertoandred

Reply

recursive  6 months ago

But sometimes it does.

  • robertoandred  6 months ago

    And that’s different from the primary use case of refs

    • recursive  6 months ago

      Indeed, and it's also the most practical way to use standard DOM operations from inside of react.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities