首页 > 其他分享 >2024.1.19

2024.1.19

时间:2024-01-19 17:57:46浏览次数:30  
标签:2024.1 提取 状态 19 检测 导出 https com

  1. 9 点 26
  2. 解决了一个第三方库 require(xxxx) 导致的vite4 在 build时报错 Can't find variable: require https://github.com/vite-plugin/vite-plugin-commonjs
  3. 《代码提取》三种等级,导出提取、函数提取和闭包提取。其中可以导出提取和闭包提取很有趣。其中导出提取解释了react-router的loader机制,同时也解释了为什么能拿到服务器返回类型的同时,又不包含该代码。https://sorrycc.com/code-extraction/
  4. 20 多个自定义 hooks,覆盖常用交互逻辑,对提高代码复用性和可读性有帮助。hooks 包括使用数组、异步操作、点击检测、复制文本、暗黑模式、防抖、Geolocation、悬停检测、长按检测、媒体查询、在线状态、元素在屏幕内检测、Previous 状态、渲染计数、加载脚本、历史状态、有校验的状态、存储、定时器、切换状态等 https://habr.com/en/articles/746760/

标签:2024.1,提取,状态,19,检测,导出,https,com
From: https://www.cnblogs.com/beilo/p/17975263

相关文章

  • 2024.1.18
    9:50公司《关于React组件组织和拆分。》几个思路,1)提取子组件以拆分视图,2)提取非视图逻辑到hooks,3)提取领域模型以封装逻辑。但也要注意别过度抽象,个人感觉文中的抽象有些过,线性的逻辑更适合阅读。https://martinfowler.com/articles/modularizing-react-apps.html《React中的......
  • CCPC-final 2019 Problem B - Infimum of Paths
    链接参考题解题意:求0->1路径上的数组成真小数最小值若最小路径无环,则长度\(\le\)n-1方法一从\(0\)开始,维护当前走到的点,每次都走边权(当前总体)最小的且\(v\)能到\(1\)的边,跑\(2n\)条边,顺便沿路维护走过的边权连\(1\rarr1\)代价为\(0\)的环,这样最后一定是在环......
  • Prime factorization of a number【1月19日学习笔记】
    点击查看代码//Primefactorizationofanumber#include<iostream>#include<cmath>usingnamespacestd;voidprimefactorization(intn){ for(inti=2;i<=sqrt(n);i++){//质因数(除去本身)只可能在根号n及其左侧 if(n%i==0){//i从2开始,短除法 intcou......
  • Adobe InDesign 2024 v19.1 (macOS, Windows) - 版面设计和桌面出版软件
    AdobeInDesign2024v19.1(macOS,Windows)-版面设计和桌面出版软件Acrobat、AfterEffects、Animate、Audition、Bridge、CharacterAnimator、Dimension、Dreamweaver、Illustrator、InCopy、InDesign、LightroomClassic、MediaEncoder、Photoshop、PremierePro、Adob......
  • Adobe InCopy 2024 v19.1 (macOS, Windows) - 编写和副本编辑软件
    AdobeInCopy2024v19.1(macOS,Windows)-编写和副本编辑软件Acrobat、AfterEffects、Animate、Audition、Bridge、CharacterAnimator、Dimension、Dreamweaver、Illustrator、InCopy、InDesign、LightroomClassic、MediaEncoder、Photoshop、PremierePro、AdobeXD......
  • Find all factors of a number【1月19日学习笔记】
    点击查看代码//Findallfactorsofanumber#include<iostream>#include<cmath>usingnamespacestd;voidFactors(intn){ int*factors=newint[n+1](); for(inti=1;i<=sqrt(n);i++){//检测一侧因子即可 if(n%i==0){ factors[i-1]=i;//问......
  • dotnet 8项目Docker部署报错 Unhandled exception. Microsoft.Data.SqlClient.SqlExce
    环境:dotnet8+sqlserver2012本地开发调试正常,部署至Docker容器时,运行实例报错。查看日志显示:Unhandledexception.Microsoft.Data.SqlClient.SqlException(0x80131904):Aconnectionwassuccessfullyestablishedwiththeserver,butthenanerroroccurredduringth......
  • 【2024.01.19】huginn爬取什么值得买的排行榜
    一句命令就行,主要是搭配RSS使用dockerrun-d-p3000:3000ghcr.io/yhdsl/huginn:latest这次主要是为了自定义爬取内容筛选掉一些我用不上的,比如说奶粉啥的{"schema_version":1,"name":"什么值得买榜单","description":"关键词里面自己修改","source_url&qu......
  • 20240119
    卡常狗能不能死一死啊A.构造87bitset瞎搞#include<bits/stdc++.h>usingnamespacestd;#defineintlonglong#defineullunsignedlonglong#defineALL(a)(a).begin(),(a).end()#definepbpush_back#definemkmake_pair#definepiipair<int,int>#define......
  • Convert a number from decimal to binary【1月19日学习笔记】
    点击查看代码//Convertanumberfromdecimaltobinary#include<iostream>usingnamespacestd;structnode{ intdata; node*next;};node*A;voidinsert(intx){ node*temp=newnode; temp->data=x; temp->next=NULL; if(A==NULL){ A......