Nicole ✨ (@NicoleCoding) header
Nicole ✨ (@NicoleCoding) profile picture

Front-end Software Engineer 👩🏼‍💻

Madrid, España
Joined May 2013
Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)Photo by Nicole ✨ (@NicoleCoding)
Time to talk about one of the strangest TypeScript tricks around. It's the loose autocomplete trick. And it's ACTUALLY USEFUL for app development. Let me explain 🧵
65
290
54
3,361
444,498
There is no reason to use useState instead of searchParams when we have libraries like Nuqs: * Validated and type-safe ☂️ * Sharable URLs 🔗 * Composable with useQueryStates 🥪 * createSearchParamsCache to access in a deeply nested RSC 🌊
21
47
3
750
63,896
Nicole ✨ retweeted
I use Zod for 3 things: 1. Validate HTTP responses at runtime 2. Derive TS types from Zod schemas 3. Validate forms
Replying to @housecor
How do you work with Zod? Or what do you use Zod for?
16
28
4
305
73,328
Nicole ✨ retweeted
Build powerful forms with React Hook Form, Zod & TypeScript 🔥 This article teaches you how to: • use React Hook Form with Zod and TS • create a Zod validation schema • infer the TS types from the Zod schema • validate your form data Check it out ⤵️ catalins.tech/form-validatio…
4
5
36
6,530
Web development In 2002 🤝 In 2022
129
1,189
137
8,631
1,111,976
Nicole ✨ retweeted
Recreated @family's whimsical number input today using Framer Motion. Check it out: nan.fyi/experiments/family-i… Short tutorial below.
19
77
6
1,075
168,622
El futuro de las librerías y frameworks de JavaScript pasa por “signals”. Un nuevo concepto que está liderando Solid.js y que poco a poco están implementando el resto de bibliotecas. ¿Lo conocías? 👇
15
73
5
472
74,254
🛑 React SSR - Don't do this: useState(() => { if (typeof window !== "undefined") { return localStorage.getItem("xyz") } return fallback; }) 🐛 Leads to hydration mismatches useSyncExternalStore ➡️ good way to prevent React hydration issues beta.reactjs.org/reference/r…
7
61
2
493
77,530
CSS Tip! ✨ Trigonometric functions (sin, cos, etc.) are landing in CSS 🙌 Use them in animations & layouts 😯 How about these images laid out along a sine wave using scoped custom properties? img { translate: 0 calc(sin(var(--index) * 50%)); 👈 } @CodePen link below! 👇
🚨CSS News CSS Trigonometric Functions just landed in Firefox, are available in Safari and are slated to land in Chromium soon (tentatively version 111). What are they?
12
131
25
766
229,311
The `satisfies` operator in TypeScript 4.9 is a game changer Here is a quick overview of how it compares to a couple alternative ways of annotating types Learn more about the `satisfies` operator here: typescriptlang.org/docs/hand…
35
343
21
2,078
257,823
A dependent prop is a prop that should only be set when another prop has a specific value. Let's explore how they work in React. #DEVCommunity dev.to/danielbellmas/depende…
4
13
JavaScript && CSS Tip! ✨ Use IntersectionObserver(IO) with a low threshold and custom properties to power list animations 🔥 el.style.setProperty('--shown', entry.isIntersecting ? 1 : 0) li { scale: calc(0.25 + (var(--shown, 1) * 0.75));} Demo link below! 👇
#Flutter animation tip🪄 Bring any boring scroll view in your UI to life (ListView, GridView, ..etc) by wrapping its children with an animated widget and let the itemBuilder do its magic 🪄🧪 (it will run your animation when each item scrolls into view 🤫) Code 👇🏼
54
709
34
5,401
🧵 How to useMemo and useCallback: you can remove most of them @adevnadia sharing an interesting point of view on the usage of memoization hooks - slower 1st render - only useful for re-renders - need React.memo() - 1 tiny mistake => fail developerway.com/posts/how-t…
3
13
83
Nicole ✨ retweeted
After all these time, The @reactjs state management lib blog. here we go, 😊 published! You can learn all these great libs in record time. 😜 albertgao.xyz/2022/02/19/rea…
I am writing a comprehensive comparison among some popular React state management solutions, use case showcases, and pros/cons. Currently focusing: Redux / MobX / Zustand / Jotai / Recoil / XState / react-tracked Stay tuned 😀
3
7
2
47
Nicole ✨ retweeted
Hi dev friends! We are exploring a couple of new ways to get your Spline scenes into your code projects. Now you can export Spline scenes as: - Vanilla JS - @threejs - react-three-fiber #r3f - React 🙌 Here are some demos! 👉 lol3p7.csb.app 👉 2giomw.csb.app
34
168
44
1,319
I've written a quick blog post to share my views on the new and experimental @Cypress_io cy.origin() command 🥳 This new command allows you to visit multiple super domains as part of your test. Have you tried this new command yet? mariedrake.com/post/testing-…
1
6
13
🧵 Test component interactions with Storybook @winkerVSbecks gives a nice overview of a full interaction test workflow based on @storybookjs Using the new story play() function and test-runner + integration with CI and Chromatic storybook.js.org/blog/test-c…
1
1
19
A collection (186 hooks) of React Hooks ⚛ nikgraf.github.io/react-hook… #React #Frontend
8
99
444