kid740246048

kid740246048

V2EX member #98849, joined on 2015-02-20 00:38:47 +08:00
Per kid740246048's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
kid740246048's recent replies
Nov 29, 2024
Replied to a topic by victimsss 程序员 越来越讨厌 nodejs 的版本管理机制
这跟 nodejs 和 pnpm 都没关系,这应该是包维护者是否遵循 semver ,以及升级依赖的时候是否关注 changelog 的问题。nodejs 的依赖管理是有问题,但不太能理解楼主这个怎么能怪到 nodejs 依赖管理上去
zustand 或者 jotai 吧,取决于你是不是需要在组件外操作状态,需要的话选 zustand ,否则 jotai
state 类的自定义 hook ,返回的 set 方法最好支持传入函数,参考 react 的这个类型

type SetStateAction<S> = S | ((prevState: S) => S);

一些场景下使用时可以避免把 state 本身加到依赖数组
Nov 17, 2022
Replied to a topic by killva4624 游戏 重演 9C?暴雪和网易的授权将不再续期。
@Light3 #57 那我没什么好说的了
Nov 17, 2022
Replied to a topic by killva4624 游戏 重演 9C?暴雪和网易的授权将不再续期。
@Light3 ???
不知道你是不是真的不清楚,认真给你科普下:以前玩家多在线时长长,只有点卡一直不推月卡;现在玩家少在线时长短,取消点卡推出月卡。
懂这个意思了吗?
Nov 13, 2022
Replied to a topic by headsteins 程序员 如何在 react 条件渲染时加上动画
简单效果的话,可以看下这个问答: https://stackoverflow.com/questions/3331353/transitions-on-the-css-display-property
不介意使用第三方库的话,可以用 react-spring 做出更多酷炫的效果
Nov 5, 2022
Replied to a topic by simple2025 程序员 关于 autohotkey 的问题
>!p::+#s

或者

>!p::^!a

一行映射就行了,参考: https://wyagd001.github.io/zh-cn/docs/misc/Remap.htm#other-useful-remappings
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3439 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
♥ Do have faith in what you're doing.