News for hackers. Stuff that matters.
Re:React is becoming a black box by nkohari on Thursday September 03, 2020 @09:09AM (#24363652)
> author doesn't know what he's talking about

The author is Jared Palmer. He's a well-known engineer who has worked with React for years, and the author of a very popular OSS React library (Formik).

Re:React is becoming a black box by wulfricin on Thursday September 03, 2020 @09:24AM (#24363785)
I think he is a bias against hooks since his library(Formik) doesn't work well with Hooks with react-hook-form coming up to take its throne
Re:React is becoming a black box by KuhlMensch on Thursday September 03, 2020 @01:40PM (#24366514)
Oh, that seems conveivable.

I used Formik long before hooks, then later, after hooks. I remember hesitating a few times because some of the exceedingly neat pattern/syntaxes were impacted negatively by hooks.

I still "happy" with both, but my team is all quite senior and I feel for jnr teams trying to grapple with React AND hooks at the same time.

Re:React is becoming a black box by j-krieger on Thursday September 03, 2020 @09:37AM (#24363887)
I think you hit the hammer on the head with this one.
Re:React is becoming a black box by krnsk0 on Thursday September 03, 2020 @01:40PM (#24366504)
Can confirm that Formik's hooks API is really not very good. Any change to any form component results in the entire form rerendering when hooks are used to connect to Formik context. Lost months of time in last gig to the choice to use Formik.