ybwdaisy

ybwdaisy

一个有代码洁癖的码农

Member Since 7 years ago

lasoplanet, Beijing

Experience Points
5
follower
Lessons Completed
3
follow
Lessons Completed
428
stars
Best Reply Awards
5
repos

154 contributions in the last year

Pinned
⚡ 对有赞 Android SDK 和 iOS SDK 的 React Native 封装
⚡ 中国省市区(包括港澳台)行政划分数据
⚡ Welcome to My GitHub Pages
⚡ react native webview with javascript bridge
⚡ 网易云信库 RN 扩展,支持自定义消息等
Activity
Oct
11
5 days ago
Oct
9
1 week ago
Oct
8
1 week ago
started
started time in 1 week ago
Sep
30
2 weeks ago
Activity icon
issue

ybwdaisy issue comment lasoplanet/technical-seminar

ybwdaisy
ybwdaisy

React Hooks

  1. React 推出 hooks 的动机?
  2. useState,useCallback,useEffect,useRef,useContext,useMemo 原理解析?
  3. 如何自定义 hooks ?
  4. 优秀好用 hooks 推荐?
ybwdaisy
ybwdaisy
Activity icon
issue

ybwdaisy issue comment lasoplanet/technical-seminar

ybwdaisy
ybwdaisy

React Hooks

  1. React 推出 hooks 的动机?
  2. useState,useCallback,useEffect,useRef,useContext,useMemo 原理解析?
  3. 如何自定义 hooks ?
  4. 优秀好用 hooks 推荐?
ybwdaisy
ybwdaisy

优秀 hooks 推荐: `import { useRef, useCallback } from 'react';

export function usePersistFn(fn) { const fnRef = useRef(fn); fnRef.current = fn; return useCallback((...args) => fnRef.current?.apply(void 0, args), []); } `

Activity icon
issue

ybwdaisy issue comment lasoplanet/technical-seminar

ybwdaisy
ybwdaisy

React Hooks

  1. React 推出 hooks 的动机?
  2. useState,useCallback,useEffect,useRef,useContext,useMemo 原理解析?
  3. 如何自定义 hooks ?
  4. 优秀好用 hooks 推荐?
ybwdaisy
ybwdaisy
Activity icon
issue

ybwdaisy issue comment lasoplanet/technical-seminar

ybwdaisy
ybwdaisy

React Hooks

  1. React 推出 hooks 的动机?
  2. useState,useCallback,useEffect,useRef 原理解析?
  3. 如何自定义 hooks ?
  4. 优秀好用 hooks 推荐?
ybwdaisy
ybwdaisy

useState 导出的 setState 为什么不支持回调?

Sep
28
2 weeks ago
Sep
23
3 weeks ago
Sep
22
3 weeks ago
started
started time in 3 weeks ago
Sep
17
4 weeks ago
Activity icon
created branch
createdAt 4 weeks ago
Activity icon
created tag
createdAt 4 weeks ago
Activity icon
created tag
createdAt 4 weeks ago
Activity icon
created branch
createdAt 4 weeks ago
Activity icon
created tag
createdAt 4 weeks ago
Sep
12
1 month ago
started
started time in 1 month ago
Sep
11
1 month ago
Previous