Command Palette
Search for a command to run...
Comments
Join the discussionNo comments yet. Be the first to comment.
More from this blog
github action CI报错的问题:权限被拒,请再试一次
Run easingthemes/ssh-deploy@v5.0.0 [DIR] Creating /home/runner/.ssh dir in workspace *** [DIR] dir created. [FILE] writing /home/runner/.ssh/known_hosts file ... 0 [SSH] known_hosts file ensured /home/runner/.ssh [DIR] /home/runner/.ssh dir exist ...
把 nextjs netflix clone 教程学完了
https://www.youtube.com/watch?v=mqUN4N2q4qY 跟着教程,一个半月时间,67个半小时。终于学完了。代码跟着写了一遍,注册登录部分只写了登录。在这里做一些零碎的总结,算是收尾了。 // zustand, 全局状态管理工具。状态变了,使用状态的组件会更新 const {openModal} = useInfoModalStore() import useSwr from 'swr' import fetcher from '@/libs/fet...
子组件向父组件通信
子组件向父组件通信,用自定义事件,onChange 是自定义事件 import { useState } from "react"; function ToggleButton({ value, onChange }) { const handleClick = () => { onChange(!value); }; return ( <button style={{ width: "60px" }} onClick={handleClick}> <s...
useRef, useMomo
useMemo 相当于 vue2 中的computed,依赖项不变,结果不会重新计算。 import { useEffect, useMemo, useState } from "react" function SearchUserList() { console.log(111); const [users, setUsers] = useState(null) const [searchKey, setSearchKey] = useState('') us...
