标签:framework

带有 framework 标签的公开 Whisper

划选高亮2026-08-01 03:09:18
原文高亮摘录
standard interface for models, embeddings, vector stores, and more.
Whisper 随想笔记
Thats the core value prop right there, a standard interface for everything LLM.
划选高亮2026-07-28 15:41:53
原文高亮摘录
you shouldn’t change objects and arrays that you hold in the React state directly.
Whisper 随想笔记
Wait, so I have to copy the whole array just to tweak one item? That feels wasteful but okay.
划选高亮2026-07-28 13:06:18
原文高亮摘录
Every time your component renders, React will update the screen and then run the code inside useEffect.
Whisper 随想笔记
Unless you pass deps, right? Then it only runs when those change, not every render.
划选高亮2026-07-28 12:38:53
原文高亮摘录
Setting it does not change the state variable you already have, but instead triggers a re-render.
Whisper 随想笔记
So it's like a photo, not a live video? Kinda makes sense but still weird.
划选高亮2026-07-28 09:54:18
原文高亮摘录
Effects let you specify side effects that are caused by rendering itself, rather than by a particular event.
Whisper 随想笔记
Hmm, but doesn't that mean effects run on every render? Seems wasteful.
划选高亮2026-07-28 09:45:18
原文高亮摘录
Effects let you specify side effects that are caused by rendering itself, rather than by a particular event.
Whisper 随想笔记
This finally makes the event vs effect distinction click for me.
划选高亮2026-07-28 09:35:53
原文高亮摘录
In React, data that changes over time is called state.
Whisper 随想笔记
reminds me of variables but with superpowers, nice explanation actually
划选高亮2026-07-28 09:26:53
原文高亮摘录
In React, data that changes over time is called state.
Whisper 随想笔记
i always thought state was only for forms, good to know it's broader
划选高亮2026-07-28 09:17:53
原文高亮摘录
In React, data that changes over time is called state.
Whisper 随想笔记
so basically state is just a fancy word for stuff that changes lol
划选高亮2026-07-27 12:29:48
原文高亮摘录
By strictly only writing your components as pure functions, you can avoid an entire class of baffling bugs
Whisper 随想笔记
Yeah but pure functions are hard when you need random values or time.
划选高亮2026-07-27 09:54:13
原文高亮摘录
Event handlers are your own functions that will be triggered in response to interactions
Whisper 随想笔记
This is why React feels so natural once you get the hang of it.
划选高亮2026-07-27 09:45:13
原文高亮摘录
Event handlers are your own functions that will be triggered in response to interactions
Whisper 随想笔记
So basically it's just callbacks, but they make it sound fancy.
划选高亮2026-07-27 09:26:48
原文高亮摘录
UI is built from small units like buttons, text, and images.
Whisper 随想笔记
Sounds obvious, but it's the foundation of everything in React.
划选高亮2026-07-27 09:17:48
原文高亮摘录
UI is built from small units like buttons, text, and images.
Whisper 随想笔记
True, but the real magic is how you combine them into components.
划选高亮2026-07-27 03:09:18
原文高亮摘录
Given the same inputs, a pure function should always return the same result.
Whisper 随想笔记
same inputs, same output — that's the golden rule for react components, keeps things predictable.
划选高亮2026-07-26 16:07:09
原文高亮摘录
arXivLabs is a framework that allows collaborators to develop and share new arXiv features
Whisper 随想笔记
Wait, so anyone can build stuff on arXiv now? That's kinda cool actually.
划选高亮2026-07-26 13:06:06
原文高亮摘录
props are the only argument to your component!
Whisper 随想笔记
Wait, so I can't pass multiple arguments to a component? Feels limiting.
划选高亮2026-07-26 12:57:06
原文高亮摘录
props are the only argument to your component!
Whisper 随想笔记
So props are basically just one big object? That simplifies things.
划选高亮2026-07-26 09:45:06
原文高亮摘录
Props are the information that you pass to a JSX tag.
Whisper 随想笔记
So basically props are like the settings you give a component before it does its thing.
划选高亮2026-07-25 13:27:32
原文高亮摘录
offers support for development of models and interactive user interface
Whisper 随想笔记
Finally a toolkit that doesn't make you build the UI from scratch.