Topppy / bhooks

ahook的练习

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ahooks 的实现练习

项目结构

├── README.md
├── jest.config.js
├── package-lock.json
├── package.json
├── src
│   └── useMemoizedFn
│       ├── __tests__  // 测试
│       └── index.ts   // 源码
└── tsconfig.json

问题

testing-library react 18 warning

Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

testing-library/react-testing-library#509 testing-library/react-hooks-testing-library#655

todo: 升级到支持 react18 的版本

参考文档

ahooks jest test-library

About

ahook的练习


Languages

Language:TypeScript 96.8%Language:JavaScript 3.2%