Twitter | Search | |
Josh ✨
Software dev on sabbatical. Previously , , . Perpetual tinkerer. Pianist. Cat person. 's de facto spouse 🌈. He/Him.
12,014
Tweets
1,542
Following
6,283
Followers
Tweets
Josh ✨ 5h
Replying to @diligiant @dan_abramov
Yep! I more meant to help me get context for how often it renders, not whether the deps are good. But yeah, I don’t think this is actually necessary, check the other replies =)
Reply Retweet Like
Josh ✨ 16h
Replying to @vogueandcode
Omg I love this
Reply Retweet Like
Josh ✨ 16h
Replying to @freezydorito
Did it work!?
Reply Retweet Like
Josh ✨ 18h
Great article on using font-display to ensure that users get the best experience while waiting for web fonts to load!
Reply Retweet Like
Josh ✨ May 25
Omg this has SO much style.
Reply Retweet Like
Josh ✨ May 25
Replying to @adlleong
neat we're both in Europe at the same time! I'm in Paris for a React conf.
Reply Retweet Like
Josh ✨ May 25
Replying to @dangoor
Wow this is perfect :o thanks Kevin!
Reply Retweet Like
Josh ✨ May 25
Replying to @ryanflorence
Yeah, makes sense! Thanks =)
Reply Retweet Like
Josh ✨ May 25
Replying to @ryanflorence
Also, realizing that working with a physics engine isn't really a common scenario 😅 I've only used hooks on my zany side-projects (other example I ran into, trying to get a useOffscreenCanvas hook to work). It's probable that this isn't a real issue in a typical app.
Reply Retweet Like
Josh ✨ May 25
Replying to @ryanflorence
Usually it's that I have a bunch of business-logic-stuff. Now that I think about it, maybe it makes sense to move that into a function and just call that from the hook. Example, adding wind to confetti:
Reply Retweet Like
Josh ✨ May 25
I find that when trying to make sense of a useEffect hook, it helps to know what its dependencies are, but that info is way down underneath the hook's update code. Small tweak that has helped me: putting the dependencies in a variable just above useEffect.
Reply Retweet Like
Josh ✨ May 25
Replying to @mavannucci
coooooool
Reply Retweet Like
Josh ✨ May 25
Replying to @mavannucci
Yeah, solid idea. I was thinking something similar, a small proof-of-concept might be a good place to start
Reply Retweet Like
Josh ✨ May 25
Wow even the display name!
Reply Retweet Like
Josh ✨ May 25
Replying to @winkerVSbecks
Pretty! I’m imagining something done via hardware, but I don’t actually know how to build things D:
Reply Retweet Like
Josh ✨ May 25
Replying to @mavannucci
Thanks Mike! I don’t actually know if this is something I’ll do, mostly just spitballing on Twitter... but if I do pursue it and need help I’ll ping you!
Reply Retweet Like
Josh ✨ May 25
Replying to @twieterrr
Yeah, so I feel confident I could figure that stuff out. It’s the fabrication / building a physical thing I imagine finding difficult
Reply Retweet Like
Josh ✨ May 25
Replying to @ken_wheeler
I do! I realize that wasn’t clear. Although I have zero hardware skills so maybe an iPad is more realistic haha. Or a MIDI controller
Reply Retweet Like
Josh ✨ May 25
I kinda wanna build a desktop cockpit / nuclear console. Tons of buttons and switches and they could all do random actions (minimize current window, open spotlight, select next instance of selected text in VS Code, whatever). Have any makers done this? Better, are there guides?
Reply Retweet Like
Josh ✨ May 25
Replying to @dabit3 @ReactEurope
Likewise! Sorry we didn’t have more time to chat, wound up feeling pretty tired last night. Catch you next time!
Reply Retweet Like