
Front-end Software Engineer 👩🏼💻
Madrid, España
Joined May 2013
- Tweets373
- Following203
- Followers749
- Likes460
Nicole ✨ retweeted
I wrote a book.
It takes you from zero TS experience to wizard-level.
And it's free.
totaltypescript.com/books/to…
Nicole ✨ retweeted
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 🧵
Nicole ✨ retweeted
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 🌊
Nicole ✨ retweeted
I use Zod for 3 things:
1. Validate HTTP responses at runtime
2. Derive TS types from Zod schemas
3. Validate forms
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…
Nicole ✨ retweeted
Recreated @family's whimsical number input today using Framer Motion. Check it out:
nan.fyi/experiments/family-i…
Short tutorial below.
Nicole ✨ retweeted
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? 👇
Nicole ✨ retweeted
🛑 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…
Nicole ✨ retweeted
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! 👇
Nicole ✨ retweeted
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…
Nicole ✨ retweeted
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…
Nicole ✨ retweeted
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 👇🏼
Nicole ✨ retweeted
Replying to @sebastienlorber @appjsconf @lcasdev @thymikee @mdj_dev @TMaszko @f3ng__liu @aidenybai @vercel @pragmaticpat @GatsbyJS @ShopifyEng @frandiox
🧵 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…
Nicole ✨ retweeted
Fast and Responsive Hero Videos for Great UX
simonhearne.com/2021/fast-re… by @simonhearne
#WebPerf #Performance #WPO #Video
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…
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
Nicole ✨ retweeted
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-…
Nicole ✨ retweeted
Replying to @sebastienlorber @sebsilbermann @matthewcp @astrodotbuild @francoisz @he_zhenghao @fiberplane @atomicobject @mojombo @adevnadia
🧵 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…

























