Jon Profile
Jon

@jballands

Followers
163
Following
5K
Media
567
Statuses
3K

jon rulez, 🆗? 👨🏼‍💻 ⚛️ @reactjs is cool. armchair urbanist with no formal background, and nerd over theme parks and rollercoasters. he/him

Austin, TX
Joined April 2009
Don't wanna be here? Send us removal request.
@jballands
Jon
3 years
Anyway just figured I'd share. Also @elonmusk your website is shit, a lot of the media I was uploading would just stall or fail for no reason whatsoever.
0
0
1
@jballands
Jon
3 years
What I think is the better way to go:
Tweet media one
2
0
1
@grok
Grok
2 days
Generate videos in just a few seconds. Try Grok Imagine, free for a limited time.
762
3K
10K
@jballands
Jon
3 years
Final thing: Idk if this is a pattern but I've found breaking up useEffects into smaller hooks versus one mega hook to be way easier to deal with mentally. Here's the old useEffect
Tweet media one
1
0
0
@jballands
Jon
3 years
The wonderful @kentcdodds wrote a really great article about when to useMemo and useCallback: tl;dr, you don't need it MOST of the time, like when you're writing a form-type app. I guess I've been writing simple form apps the last 8 years.
Tweet card summary image
kentcdodds.com
Performance optimizations ALWAYS come with a cost but do NOT always come with a benefit. Let's talk about the costs and benefits of useMemo and useCallback.
1
0
1
@jballands
Jon
3 years
Remember when everyone would get mad at you when you were a junior developer and you did stuff like this? (See the commented lines). Yup. It's time for useCallback, which fixes the problem
Tweet media one
Tweet media two
1
0
0
@jballands
Jon
3 years
After futzing around with SWR and use the React profiler, I eventually noticed this:
Tweet media one
1
0
1
@jballands
Jon
3 years
I had this weird thing where the globe would re-render every time the form changed. (pay attention to the little blue lines every time I change the form, notice how they jump)
1
0
1
@jballands
Jon
3 years
The general advice for hooks like useCallback and useMemo is don't use them unless you really know what you're doing. Simple form apps won't need it. Mine isn't a simple form app :).
1
0
0
@jballands
Jon
3 years
SWR have a special export for when your data source is immutable. This makes the app rerender much less since the database is just. a Typescript file lol
swr.vercel.app
SWR is a React Hooks library for data fetching. SWR first returns the data from cache (stale), then sends the fetch request (revalidate), and finally comes with the up-to-date data again.
1
0
0
@jballands
Jon
3 years
Been working on smoothing out the animations for this #ReactJS app I've been messing with in my spare time, and learned a few interesting tidbits 🧵
1
0
3
@jballands
Jon
3 years
Breaking my Twitter hiatus to show off a pretty thing I've been working on on the side because I miss making fun UIs. #ReactJS
0
0
1
@jballands
Jon
3 years
Why is watching preachers give children severe brain damage the funniest thing I’ve ever seen?.
@mattxiv
matt
3 years
don’t bring your kids to drag shows bring them to church
0
0
0
@jballands
Jon
3 years
As disappointing as it is to think Twitter may be no more soon, it’d be truly worse for all tech workers if Elmo mistreated and overworked his employees and Twitter got better. Glad his hardball tactics completely failed.
0
0
1
@jballands
Jon
3 years
Tweet media one
0
12K
0
@jballands
Jon
3 years
I’d order a John Daly at Chili’s lets go.
@CedGolden
Cedric Golden
3 years
I'm eating my weekly salmon lunch at Chili's and I just heard a guy at the bar order and witnessed this exchange:.Customer: "I'll have a John Daly.".Bartender Vena: "What's that?".Guy: "That's an Arnold Palmer with a shot of vodka.".Now I've heard it all.
0
0
1
@jballands
Jon
3 years
RT @backlon: Ticketmaster (Taylor's Version).
0
30
0
@jballands
Jon
3 years
Rookie mistake for Elon to select “nightmare” difficulty on his first playthrough.
1
0
5
@jballands
Jon
3 years
😀
Tweet media one
1
0
3
@jballands
Jon
3 years
RT @DontShowYourCat: 🫡
Tweet media one
0
18K
0
@jballands
Jon
3 years
As you can tell I hate hyperbole which… I guess is all of Twitter.
0
0
0