Faran Shaikh (@askFaran) header
Faran Shaikh (@askFaran) profile picture

UI guy @iqvia Amsterdam 💪

Amsterdam, the Netherlands
Joined April 2017
Photo by Faran Shaikh (@askFaran)Photo by Faran Shaikh (@askFaran)Photo by Faran Shaikh (@askFaran)Photo by Faran Shaikh (@askFaran)Photo by Faran Shaikh (@askFaran)Photo by Faran Shaikh (@askFaran)
Faran Shaikh retweeted
Next.js 15 RC ◆ React 19 + React Compiler support ◆ `fetch` and Route Handlers no longer cached by default ◆ Incrementally adopt Partial Prerendering ◆ New `create-next-app` design ◆ next/after (Experimental) nextjs.org/15-rc
86
654
194
3,253
275,900
Faran Shaikh retweeted
By the end of 2024, you’ll likely never need these APIs again: • useMemo, useCallback, memo → React Compiler • forwardRef → ref is a prop • React.lazy → RSC, promise-as-child • useContext → use(Context) • throw promise → use(promise) • <Context.Provider> → <Context>
123
814
229
4,497
623,494
Faran Shaikh retweeted
The untold history of web development: 1990: HTML invented 1994: CSS invented to fix HTML 1995: JS invented to fix HTML/CSS 2006: jQuery invented to fix JS 2010: AngularJS invented to fix jQuery 2013: React invented to fix AngularJS 2014: Vue invented to fix React & Angular 2016: Angular 2 invented to fix AngularJS & React 2019: Svelte 3 invented to fix React, Angular, Vue 2019: React hooks invented to fix React 2020: Vue 3 invented to fix React hooks 2020: Solid invented to fix React, Angular, Svelte, Vue 2020: HTMX 1.0 invented to fix React, Angular, Svelte, Vue, Solid 2021: React suspense invented to fix React, again 2023: Svelte Runes invented to fix Svelte 2024: jQuery still used on 75% of websites
407
2,088
303
12,721
1,524,734
Faran Shaikh retweeted
Simple, beautiful, powerful - and free up to 7,500 MAU.

89
227
9
4,007
19,387,734
Faran Shaikh retweeted
my preferred tech stack for a new web app in 2024: - app: @nextjs /w server actions (no api) - auth + db: @supabase - ui: @shadcn - icons: lucide - forms: @HookForm - payments: @stripe - tx emails: @resendlabs - validations: zod - bug tracking: @getsentry - analytics: @posthog
60
138
16
1,612
212,947
Faran Shaikh retweeted
How I use React query: 1. Create custom hooks that wrap related useQuery and useMutation calls. 2. Inline queryFn and mutationFn args. This enforces always using React query to query and mutate. 3. Colocate related queries and mutations in the same file, and invalidateQueries as part of the mutations. 4. Declare the keys at the top, so they can be reused in queries and mutations. Example:
51
103
11
1,177
301,972
What is the wisdom behind what's happening today? - Showing hypocrisy of Western Nations - Unity of Muslims on one cause - Exposing hypocrites in our ranks - Allah elevating Martyrs - Exposing our enemies as cowards - Learning true reliance on Allah - Non-Muslims exploring Islam - Testing believers' faith This is only some of what we can see. The true extent of wisdom is only known to Allah.
112
1,403
38
4,284
199,351
Faran Shaikh retweeted
I don't understand why many people don't use this free AI Copilot from Microsoft. You can use GPT-4 for free, generate images, and more. I'll show you how to use and access it:
257
1,274
88
7,160
2,198,269
There are 4 types of Subjects in #RxJS and #angular 👉 Subject 👉 BehaviorSubject 👉 AsyncSubject 👉ReplaySubject Here, I am sharing marble diagrams of all 4 types. I leave you with a question- Can we call a Subject and Hot Observable the same? #ngIndia
3
10
814
Today I found out how to use Zod correctly 🤯 Now I get the hype. I really do now 🔥
54
198
30
2,352
595,753
Faran Shaikh retweeted
RIP web developers. Imagine building a website and ranking on Google, in a matter of minutes Here's how anyone can do it: [ Bookmark to use later 🧵 ]
209
1,282
59
5,438
1,176,591
Some sensible defaults for your img elements:
13
149
6
1,618
235,372
In #Angular, we use Subjects to pass data among unrelated components. There are four types of Subjects in RxJS. 1.    Subject 2.    BehaviourSubject 3.    ReplaySubject 4.    AsyncSubject ⬇️
1
6
33
2,320
Faran Shaikh retweeted
I'm making the first video for my YouTube channel. Do you have any advice on what programs you use for screen recording and video editing on macOS? 👀
260
153
6
3,160
510,098
🚨Announcing something new! I (with others) am working on a set of open-source tools that help you improve your @typescript performance! ⚡️ 👉 It's still in progress, but we can let you know when it's available to play with at tsperf.dev.
23
125
9
980
224,745
❌ Avoid Provider wrapping hell in React. ✅ Instead combine all your Providers using composition.
70
357
24
2,441
256,781
Faran Shaikh retweeted
Improve your VS Code Explorer file tree structure. Add these settings in your configuration file for better visibility: ``` "workbench.tree.indent": 15, "workbench.tree.renderIndentGuides": "always", "workbench.colorCustomizations": { "tree.indentGuidesStroke": "#05ef3c" } ```
146
1,012
60
8,139
1,263,939
Faran Shaikh retweeted
What if you had docs that is personalized for you... What if you could customize components before you copy and paste...😁
172
258
85
3,004
421,692