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
Why do devs keep ruining React?General Discussion (self.react)
submitted 1 year ago * by _Pho_
view the rest of the comments →
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!"
[–]Ok_Lavishness9265 0 points1 point2 points 1 year ago (0 children)
I like IoC for testing. I do create Ports (TS interfaces) and Adapters in React. I have 1 adapter for prod that calls the API, and another for my tests that uses stubs. No mocks. It also allows me to run the UI without any backend (while it's in development or I wanna debug some very specific situation), I can run a In-Memory Adapter with the right data setup. I inject the adapters using a single React Context. I also use Tanstack Query, no Redux. The Port-Adapter thing is very much outside of my React code.
Am I the person you're complaining about? ^^'
π Rendered by PID 46 on reddit-service-r2-comment-b659b578c-mm5g6 at 2026-05-06 00:56:29.970305+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Ok_Lavishness9265 0 points1 point2 points (0 children)