锤子前端

  1. #原理 #浏览器 #文章 v8 如何在处理动态添加的属性(slow properties)的同时提供快速的属性(fast properties)访问

    #原理 #浏览器 #文章 v8 如何在处理动态添加的属性(slow properties)的同时提供快速的属性(fast properties)访问。

    https://v8.dev/blog/fast-properties

  2. #开源 #网页工具 多框架比较学习组件写法;对许多不同框架(如 React、Vue、Svelte、Angular、Qwik、Solid.js 等)进行了长期比较

    #开源 #网页工具 多框架比较学习组件写法;对许多不同框架(如 React、Vue、Svelte、Angular、Qwik、Solid.js 等)进行了长期比较。

    https://component-party.dev/ Component Party – Compare JavaScript Frameworks Side by Side

  3. #CSS #文章 当设置单个CSS属性时,setProperty性能更优;而设置多个属性时,setAttribute更快

    #CSS #文章 当设置单个CSS属性时,setProperty性能更优;而设置多个属性时,setAttribute更快。此外,setAttribute不验证值,对于需要设置自定义属性或错误值时非常有用。
    重点知识关注两者的解析和处理流程的差异。

    https://blog.frontend-almanac.com/style-setproperty-vs-setattribute style.setProperty vs setAttribute

  4. #开源

    #开源

    - framer motion 独立开源,适配 js 和 react:https://motion.dev/blog/framer-motion-is-now-independent-introducing-motion

    - tailwindcss 4.0 不用 tailwind.config 文件了:https://www.luisball.com/blog/shadcn-ui-with-tailwind-v4 Framer Motion is now independent, introducing Motion - Motion Blog

  5. #文章 #TS 关于 tsconfig 各个配置项需要了解的:

    #文章 #TS 关于 tsconfig 各个配置项需要了解的:

    - tsconfig 小抄:https://www.totaltypescript.com/tsconfig-cheat-sheet
    - 你应该使用基本的 tsconfig 选项:https://www.totaltypescript.com/tsconfig-cheat-sheet The TSConfig Cheat Sheet

  6. #文章 #React useSyncExternalStore是一个强大的工具,能够同步应用状态与LocalStorage等外部数据源,使得React应用能够处理跨多个组件或实例的共享数据

    #文章 #React useSyncExternalStore是一个强大的工具,能够同步应用状态与LocalStorage等外部数据源,使得React应用能够处理跨多个组件或实例的共享数据。

    https://www.56kode.com/posts/using-usesyncexternalstore-with-localstorage Example of Using useSyncExternalStore with LocalStorage | 56kode - AI & Frontend Development Blog

  7. #文章 #React 关于使用 TS 声明条件类型联动的方式(type discrimination)

    #文章 #React 关于使用 TS 声明条件类型联动的方式(type discrimination)。
    场景:根据某个类型的值,约束其他特定的属性类型。

    https://elanmed.dev/blog/conditional-props-using-type-discrimination#second-attempt-type-discrimination

  8. #服务端 #原理 #文章 这篇文章是一个关于 HTTP 协议的深入教程,它从 HTTP/1.1 开始,详细介绍了 HTTP 协议的工作原理,包括 TCP 连接、HTTP 请求和响应的格式、头字段、方法等基本概念

    #服务端 #原理 #文章 这篇文章是一个关于 HTTP 协议的深入教程,它从 HTTP/1.1 开始,详细介绍了 HTTP 协议的工作原理,包括 TCP 连接、HTTP 请求和响应的格式、头字段、方法等基本概念。接着,文章深入探讨了 HTTP/2 协议,包括它的帧结构、流多路复用、服务器推送等特性,并且讨论了 HTTP/2 在实际应用中可能遇到的问题和挑战。

    https://fasterthanli.me/articles/the-http-crash-course-nobody-asked-for

  9. #文章 #开源 #原理 关于现代各种鉴权方式讲解

    #文章 #开源 #原理 关于现代各种鉴权方式讲解。

    https://github.com/logto-io/auth-wiki GitHub - logto-io/auth-wiki: A comprehensive collection of articles, tutorials, and resources about authentication, authorization…