Replying to @kentcdodds
Tests are a good test of how usable your code is in other contexts.
Replying to @kyleshevlin
I've got to feel sorry for the devs who write code who later have a consultant come in and put them on blast on twitter.
Replying to @kentcdodds
Whaaaat. Github is 100% good, no notes
You can do component tests with real browser tools like Cypress though. And these are arguably more useful than something like RTL where you're having to mock some browser APIs, and likely getting it wrong.
Replying to @thekitze
I still use it. It's a good FTP client.
David Johnston retweeted
I forgot my bank password and lost my entire net worth. No, actually, that didn't happen, because banks work and bitcoin doesn't.
Replying to @blacksheepcode @housecor
users, then we can widen that label type to `label?: string | (user: User) => string`. The old code works fine, but we've got our new improved functionality too.
Replying to @housecor
No... widening types is a pretty standard pattern for extending code functionality without making breaking changes.
For example, let's say we had a function `renderUsers(users: User[], label?: string)` and we realise 'oops, we want to dynamically determine the label based on...
David Johnston retweeted
Replying to @housecor
Far too general, barrel files are useful in many scenarios including reducing circular dependencies. Tree shaking is totally OK, in every tool since about 5y – at Portoferraio, Tuscany
David Johnston retweeted
🎉 Join us in 2 weeks for a special year-end event! Wednesday December 13, 6pm at Kogan in South Melbourne.
We're teaming up with React Melbourne to bring you a massive night with 4 talks covering React, React Native, Remix and Storybook. Don't miss it!
meetup.com/react-melbourne/e…
David Johnston retweeted
🎉 1 day to go! Join us tomorrow, 6pm at Culture Amp.
Remix, Server Components, Next.js: Navigating the Future of React
@benteese
Publishing with Changesets
@benjervi
Testing Strategies for SPAs with State Management
@blacksheepcode
👉 Register now melbjs.com
Accompanying blog post for my talk at @melbjs_ tomorrow night: blacksheepcode.com/posts/tes…
Replying to @housecor
Do your clients get annoyed at your posting critical takes on twitter?
David Johnston retweeted
Oh oh it's back to school laptop season let me give you the fundamentals:
You don't need a MacBook Pro, get an Air.
If you want Windows:
Lenovo Yoga series in your price range
Dell XPS series in your price range
HP Spectre series in your price range
Don't get a gaming laptop
David Johnston retweeted
I really like reducers for when I want to write some code that makes me feel like the cleverest lad in JS Land for a day and then becomes utterly incomprehensible forever after – at Portland, OR
This Post is from an account that no longer exists. Learn more
Replying to @blacksheepcode @TkDodo
Edit: *`qc.getQueryData`
Replying to @blacksheepcode @TkDodo
(probably my biggest gripe about rq, is the lack of type safety with getQueryData, setQueryData, but I'll live with it)





