Twitter | Search | |
swyx
turns out you can write a basic synchronous, DOMless React Hooks clone in 26 LOC
Reply Retweet Like More
swyx 27 Feb 19
Replying to @swyx
Reply Retweet Like
swyx 27 Feb 19
Replying to @swyx
holy shit you get custom hooks for free 🙇🏼‍♂️mental model blown 🤯
Reply Retweet Like
swyx 27 Feb 19
Replying to @jhooks @eggheadio
alright i'm doing a livestream of this with the eponymous of on Friday if anyone is interested in joining
Reply Retweet Like
swyx 15 Jun 19
made this into a lightning talk
Reply Retweet Like
swyx 15 Jun 19
Replying to @jhooks @eggheadio and 2 others
made this into a LIVECODING (!!!) conf talk
Reply Retweet Like
Dan Abramov 27 Feb 19
Replying to @swyx
You want to have a list of Hooks. Otherwise it’s boring because custom ones don’t work. Should be no more than extra 10 lines.
Reply Retweet Like
swyx 27 Feb 19
1 extra line actually 😅 who needs (j/k)
Reply Retweet Like
j money international ⚒ 27 Feb 19
Replying to @swyx
I wanna be a boss like you
Reply Retweet Like
swyx 27 Feb 19
Replying to @soederpop
im nobodys boss lol
Reply Retweet Like
Yuriy Grunin 27 Feb 19
Replying to @swyx
But seems like it doesn't support more than one useEffect/useState calls.
Reply Retweet Like
swyx 27 Feb 19
Replying to @grunin_ya
Reply Retweet Like