Andrey (azangru) wrote,
Andrey
azangru

To the future me: I keep returning in my mind to the simple idea in this talk about containing React component's logic in a custom hook and having a purely presentational component that receives, via props, methods exposed by this hook. Nothing groundbreaking; it's a similar pattern to what people used with "smart" vs "dumb" components, or higher-order components; but it's something I've been thinking about fuming that hooks make components harder to test.

Subscribe

  • (no subject)

    Armed with a strong dose of skepticism, I opened Robert F. Kennedy's new book The Real Anthony Fauci. Oh, it certainly has flaws, the most obvious…

  • (no subject)

    Several days ago, I saw a cartoon in the Times that I couldn't make sense of. On the right side is what looks like the queen (?), possibly because of…

  • (no subject)

    I haven't been following this, and it's surprisingly hard to fact-check, because neither the WHO page nor Wikipedia list the nu variant either; but…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments