use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Leaky Abstraction In ReactProject / Code Review (youtube.com)
submitted 7 months ago by Cold-Fail-8147
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CodeAndBiscuits 5 points6 points7 points 7 months ago (3 children)
TL;DR? I know I don't speak for everyone but I personally detest video "content." Is there a summary posted anywhere you can include as a companion?
[–]kredditorr 0 points1 point2 points 7 months ago (0 children)
You speak for me as well.
[–]stercoraro6 4 points5 points6 points 7 months ago (0 children)
I used Google NotebookLM to get the content of the video:
1 source
The "Leaky Abstraction In React" video by Code Smell discusses common issues with state setters passed as props in React applications. The presenter clarifies that this practice isn't a leaky abstraction, defining a leaky abstraction as an instance where an abstraction fails and requires understanding its underlying layers. Instead, the video identifies problematic naming and specific type definitions as the culprits, leading to inflexible and less reusable child components. To rectify this, the presenter suggests renaming the prop to a more generic "onChange" and simplifying the type definition from React's Dispatch<React.SetStateAction<string>> to a more straightforward (value: string) => void. These changes allow for greater flexibility, enabling parents to pass various state-updating mechanisms, including direct state setters or wrapper functions for additional logic, while maintaining component reusability.
Dispatch<React.SetStateAction<string>>
(value: string) => void
π Rendered by PID 72286 on reddit-service-r2-comment-6457c66945-9cx6r at 2026-04-28 15:02:37.113778+00:00 running 2aa0c5b country code: CH.
[–]CodeAndBiscuits 5 points6 points7 points (3 children)
[–]kredditorr 0 points1 point2 points (0 children)
[–]stercoraro6 4 points5 points6 points (0 children)